Groups
Manage Participants
Add, remove, promote, demote, approve, or reject participants in a group
POST
Manage Participants
Auth:
Envelope:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: no
Description
Single endpoint for 6 actions on participants, set the operation in theaction 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 group120363406289005073@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 number5511999999999 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 number5511999999999 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 LID199789077627112@lid in participants with action: "approve". Only works in groups with requireAdminApproval=true.
Reject Group Join (pending request)
Rejects a pending request from the number5511999999999 via action: "reject". The service automatically resolves the equivalent LID when you pass only the phone number.
Remove from Group
Removes the number5511999999999 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 withsuccess: 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)
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.application/jsonRequest body
One of:
add, remove, promote, demote, approve, reject.Group JID, invite code, or link.
Numbers or JIDs targeted by the operation. At least 1 item.
Action table
action | Permission | Timeout | Use |
|---|---|---|---|
add | Admin | 60s | Add numbers / JIDs |
remove | Admin | 60s | Remove members |
promote | Super-admin | 60s | Make admin |
demote | Super-admin | 60s | Remove admin |
approve | Admin | 90s | Approve pending request |
reject | Admin | 90s | Reject pending request |
Notes
promote/demoterequire you to be super-admin (group creator or promoted by a super-admin).approve/rejectonly work for groups withrequireAdminApproval=trueand 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
| HTTP | Message |
|---|---|
| 400 | Invalid action. Must be one of: add, remove, promote, demote, approve, reject |
| 400 | At least one participant is required |
| 400 | Identifier is required |
| 403 | Not authorized to perform this action (must be admin) |
| 404 | Group not found or you are not a member of this group |