API referenceGroups
Remove a member from a group
Remove a member by JID. Idempotent when member is already absent.
Requires session admin privileges. Returns 204.
AuthorizationBearer <token>
Send Authorization: Bearer <token>. The token can be a login JWT from the frontend or an api-key for a script. JWT access comes from the person's organization role. Api-key access comes from the permissions saved on the key.
In: header
Path Parameters
session*string
WhatsApp session id that owns the group. Must be connected for this live action.
Example
"01HZ0SESSION0000000000000"gid*string
Group JID, ending in @g.us.
Example
"120363041234567890@g.us"jid*string
Member JID to remove, ending in @s.whatsapp.net.
Example
"6281234567890@s.whatsapp.net"Response Body
application/json
curl -X DELETE "https://example.com/api/v1/sessions/01HZ0SESSION0000000000000/groups/120363041234567890@g.us/members/6281234567890@s.whatsapp.net"Empty
{ "error": { "code": "not_found", "details": { "property1": null, "property2": null }, "message": "session not found" }}