v1
latestOpenAPI 3.1.02026-07-1413113265.9 KBcontact
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
Example request
{
"contactId": "1234567890@c.us"
}Response
Contact blocked successfully
Example response
{
"data": {
"contactId": "1234567890@c.us",
"blocked": true
},
"links": {
"self": "https://waapi.app/api/v1/instances/1/client/action/block-contact"
},
"status": "success"
}