Documentation Index
Fetch the complete documentation index at: https://docs.wappfy.com.br/llms.txt
Use this file to discover all available pages before exploring further.
Description
This endpoint revokes the current invite code of the group and generates a new code. The previous code stops working.
URL Parameters
WhatsApp unique session ID
ID of the group in format 120363XXXXX@g.us
Response
{
"success": true,
"newCode": "NewCode789Xyz"
}
Status Codes
200 - Code revoked successfully
400 - Invalid parameters
401 - Unauthorized
403 - No permission (admins only)
404 - Group not found
Usage Example
curl -X POST https://api.wappfy.com.br/api/my-session/groups/120363XXXXX@g.us/invite-code/revoke
Your Wappfy API key (get it at dash.wappfy.com.br)
The response is of type string.