v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
contact

block a contact

Blocks a contact, preventing them from sending messages to the authenticated user. The contact will not be able to see the user's last seen, online status, or status updates.

post/instances/{id}/client/action/block-contact

Path parameters

idinteger required

Instance ID

Request body

contactIdstring required

The ID of the contact to block in the format number@c.us

Example request

{
  "contactId": "1234567890@c.us"
}

Response

Contact blocked successfully

status'success' | 'error'

Example response

{
  "data": {
    "contactId": "1234567890@c.us",
    "blocked": true
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/block-contact"
  },
  "status": "success"
}