Skip to main content
Leave a WhatsApp group that you are a member of.
If you are the only admin in the group, you should promote another member to admin before leaving. Otherwise, the group may become unmanaged.

Request

X-Device-Id
string
Device identifier for multi-device support. Required when multiple devices are registered. If only one device is registered, it will be used as the default.
group_id
string
required
The WhatsApp group ID to leaveExample: [email protected]

Response

code
string
Response code (e.g., SUCCESS)
message
string
Response message describing the resultExample: Success
results
string
Additional result data (typically null for this endpoint)
curl -X POST \
  'https://your-api-domain.com/group/leave' \
  -H 'Content-Type: application/json' \
  -H 'X-Device-Id: my-device' \
  -u 'username:password' \
  -d '{
    "group_id": "[email protected]"
  }'
{
  "code": "SUCCESS",
  "message": "Success",
  "results": null
}

Build docs developers (and LLMs) love