Remove people from a WhatsApp group
Remove 1-50 people from a QR group.
- Key permissions
- Read chats and messages + Manage groups
- Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work
How it works
- They stop receiving group messages.
- Requires admin rights.
- Only invoke for explicit user intent for these people.
- Each number removes at most 50 people from groups a day (UTC), counted per person across all groups.
Body parameters
idempotencyKeystringbody or headerA fresh random UUID for each new action; never build it from dates, names, counters or step numbers, which repeat across runs. Reuse it exactly only to retry the same action.
jidstringrequiredExact group ID from list_groups, including @g.us.
participantsstring[]requiredPhone numbers in international format, digits only.
fromNumberstringoptionalWhich of the account's WhatsApp numbers acts, with country code, as listed in whatsapp_numbers from get_account_context. Only matters when the account has several numbers. Omit to use the number that is in the group; if several of the numbers are in it, anything but reading needs fromNumber.
Conditions and pagination
- Use a unique idempotency key for each intended action. Reuse the same key and exactly the same input on a retry. The body key takes precedence over Idempotency-Key.
Response
The response wraps tool-specific data in result. Save operation_id and inspect get_operation with operationId if the outcome is uncertain. completed means the operation completed; it does not prove message delivery or Meta approval. An uncertain operation returns HTTP 409 with error.operation_id.
Every response includes X-Request-Id. Errors use the shared error format and retry rules.
Schemas
Input JSON Schema
{
"type": "object",
"properties": {
"idempotencyKey": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{8,128}$",
"description": "A fresh random UUID for each new action; never build it from dates, names, counters or step numbers, which repeat across runs. Reuse it exactly only to retry the same action."
},
"jid": {
"type": "string",
"pattern": "^\\d[\\d-]*@g\\.us$"
},
"participants": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[1-9]\\d{6,14}$"
},
"minItems": 1,
"maxItems": 50,
"description": "Phone numbers in international format, digits only."
},
"fromNumber": {
"type": "string",
"minLength": 7,
"maxLength": 30,
"description": "Which of the account's WhatsApp numbers acts, with country code, as listed in whatsapp_numbers from get_account_context. Only matters when the account has several numbers. Omit to use the number that is in the group; if several of the numbers are in it, anything but reading needs fromNumber."
}
},
"required": [
"idempotencyKey",
"jid",
"participants"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Response JSON Schema
{
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"format": "uuid"
},
"status": {
"type": "string",
"enum": [
"completed"
]
},
"replayed": {
"type": "boolean"
},
"result": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"description": "Provider or tool-specific fields; preserve unknown fields."
}
}
},
"required": [],
"additionalProperties": true
},
"note": {
"type": [
"string",
"null"
]
}
},
"required": [
"operation_id",
"status",
"result"
],
"additionalProperties": true
}