Skip to main content
POST
/
api
/
contacts
/
block
Block contact
curl --request POST \
  --url https://{host}/api/contacts/block \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "contactId": "5511999999999@c.us",
  "session": "my-session"
}'
{
  "success": true,
  "message": "Contact blocked successfully"
}

Description

This endpoint allows blocking a specific contact on WhatsApp. ⚠️ This endpoint is not yet implemented.

Body

{
  "sessionId": "my-session",
  "jid": "5511999999999@s.whatsapp.net"
}

Body Parameters

PropertyTypeRequiredDescription
sessionIdstring✅ YesAuthenticated session ID
jidstring✅ YesContact identifier to be blocked (WhatsApp JID). Format: 5511999999999@s.whatsapp.net
{
  "success": true,
  "message": "Contact blocked successfully"
}

Status Codes

  • 200 - Contact blocked successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized session
  • 404 - Session not found
  • 501 - Endpoint not implemented

Usage Example

curl -X POST https://api.wappfy.com.br/api/contacts/block \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "my-session",
    "jid": "5511999999999@s.whatsapp.net"
  }'

Authorizations

apikey
string
header
required

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

Body

application/json
contactId
string
required

Contact identifier (WhatsApp JID)

Example:

"5511999999999@c.us"

session
string
required

Session name (instanceName)

Example:

"my-session"

I