WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

👥 **GROUPS** · Remove Participants

AI-generated

Summary

Remove specified participants from a WhatsApp group associated with a selected WhatGHL session.

Inputs

  • Session Mode — Choose how the sender session is selected: Auto, By Session Name, or by selecting from available sessions for the API key.
  • Session — Select an available session if 'Select Session' mode is chosen.
  • Session Name — Specify the WAHA session name if 'By Session Name' mode is chosen.
  • Group ID (required) — Identifier of the WhatsApp group from which participants will be removed. Supports formats like '1234567890@g.us' or numeric ID.
  • Participants (required) — Participants to remove from the group. Accepts a comma-separated list of participant IDs (e.g., '5491111111111@c.us,5492222222222@c.us') or JSON array text (e.g., '["id1","id2"]').

Output shape

a single JSON object per input item representing the API response from the removal action

The node sends a POST request to the WhatGHL API's /actions endpoint with the 'remove_group_participants' action. It returns the API's JSON response. Errors during execution result in failure or are handled depending on node settings.

Examples

Example 1: Remove participants from a WhatsApp group

Set 'Group ID' to the target group, provide comma-separated participant IDs to 'Participants', and configure the session selection mode as needed.

Links

Discussion