Skip to main content
POST
/
api
/
{session}
/
groups
/
{id}
/
admin
/
demote
Demote participants to regular users
curl --request POST \
  --url https://{host}/api/{session}/groups/{id}/admin/demote \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "participants": [
    {
      "id": "123456789@c.us"
    }
  ]
}'
{
  "success": true,
  "message": "Admins demoted successfully"
}

Description

This endpoint allows demoting group admins to regular participants.

URL Parameters

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

Body

{
  "participants": [
    "5511999999999@s.whatsapp.net"
  ]
}

Body Parameters

PropertyTypeRequiredDescription
participantsarray✅ YesArray of JIDs of admins to be demoted. Format: ["5511999999999@s.whatsapp.net"]

Response

{
  "success": true,
  "message": "Admins demoted successfully"
}

Status Codes

  • 200 - Admins demoted 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/admin/demote \
  -H "Content-Type: application/json" \
  -d '{
    "participants": ["5511999999999@s.whatsapp.net"]
  }'

Authorizations

apikey
string
header
required

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

Path Parameters

id
string
required

ID do Grupo

Body

application/json
participants
object[]
required
I