Chat
Block/unblock contact
Adds or removes a contact from the blocked list
POST
Block/unblock contact
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Blocks or unblocks a contact. The response includes blocked_count, the total number of blocked contacts on the account after the operation.
Examples
Block
Adds the contact to the blocked list (block: true), stopping message sending and receiving in both directions. Previous history is preserved.
Unblock
Removes the contact from the blocked list (block: false), unblocking message traffic in both directions. The operation syncs automatically with the phone’s app.
Success response
200 OK
Path parameters
string
required
Instance name.
Headers
string
required
TokenAccount or TokenInstance.
Request body
string
required
Phone number or JID of the contact. Individual contacts only, does not work with groups.
boolean
required
true blocks, false unblocks.Notes
- Blocking stops sending/receiving messages in both directions; previous history remains.
- Syncs with the phone’s app automatically.
- There is no specific webhook event for block/unblock in the current model.