Skip to main content
POST
Manage Participants
Auth: TokenAccount or TokenInstanceRate-limit: Global (100/min) • Idempotent: no

Description

Single endpoint for 6 actions on participants, set the operation in the action field. Each participant gets an individual result (success: bool), so partial operations are possible: the call may return 200 with some members failing.

Examples

Add to Group

Adds 2 numbers to the group 120363406289005073@g.us in a single call (action: "add"). Failures from privacy settings or numbers without WhatsApp are isolated as success: false in the participants array.

Promote to Admin

Promotes the number 5511999999999 to admin via action: "promote". Requires that you are super-admin of the group (creator or promoted by another super-admin).

Demote to Member

Removes the admin role from the number 5511999999999 via action: "demote", returning them to plain member status. Also requires super-admin privilege.

Approve Group Join (pending request)

Approves a pending join request by passing the LID 199789077627112@lid in participants with action: "approve". Only works in groups with requireAdminApproval=true.

Reject Group Join (pending request)

Rejects a pending request from the number 5511999999999 via action: "reject". The service automatically resolves the equivalent LID when you pass only the phone number.

Remove from Group

Removes the number 5511999999999 from the group via action: "remove". The ex-member can rejoin via the invite link unless you generate a new link with /reset-link.

Success response

Each participant receives an individual result with success: true|false in the participants array. Partial operations are possible, the call may return 200 even with some members failing (number without WhatsApp, privacy blocks add, already a member, etc.). Always inspect each entry to detect isolated errors; the error field carries the reason when success=false.
200 OK (partial)
Individual failures (success: false) do not abort processing of the remaining participants. Always inspect each entry to detect partial errors (e.g., number without WhatsApp, already a member, privacy blocks add).

Path parameters

string
required
Instance name.

Headers

string
required
TokenAccount or TokenInstance.
string
required
application/json

Request body

string
required
One of: add, remove, promote, demote, approve, reject.
string
required
Group JID, invite code, or link.
string[]
required
Numbers or JIDs targeted by the operation. At least 1 item.

Action table

Notes

  • promote / demote require you to be super-admin (group creator or promoted by a super-admin).
  • approve / reject only work for groups with requireAdminApproval=true and have a longer timeout (90s) since they depend on responses from WhatsApp.
  • For approve/reject, prefer to pass the LID returned by /requests; if you only have the phone number, the service tries to resolve the equivalent LID automatically.

Errors

Envelope: