Skip to main content
POST
/
api
/
{session}
/
groups
/
{id}
/
leave
Leave the group
curl --request POST \
  --url https://{host}/api/{session}/groups/{id}/leave \
  --header 'apikey: <api-key>'
{
  "success": true,
  "message": "You left the group successfully"
}

Description

This endpoint allows you to leave a group you are participating in.

URL Parameters

session
string
required
WhatsApp unique session ID
id
string
required
ID of the group in format 120363XXXXX@g.us

Response

{
  "success": true,
  "message": "You left the group successfully"
}

Status Codes

  • 200 - Left successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized
  • 404 - Group not found

Usage Example

curl -X POST https://api.wappfy.com.br/api/my-session/groups/120363XXXXX@g.us/leave

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

id
string
required

ID do Grupo

I