Adds or removes a contact from the blocked list
Auth:Documentation Index
Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
Use this file to discover all available pages before exploring further.
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.
block: true), stopping message sending and receiving in both directions. Previous history is preserved.
block: false), unblocking message traffic in both directions. The operation syncs automatically with the phone’s app.
| Field | Type | Description |
|---|---|---|
contact_jid | string | JID of the affected contact. |
blocked | boolean | Final state (true blocked, false unblocked). |
blocked_count | int | Total number of blocked contacts on the account after the operation. |
true blocks, false unblocks.| HTTP | error.message | When |
|---|---|---|
| 400 | Invalid request body | Malformed JSON. |
| 400 | Number is required | Missing field. |
| 401 | Invalid token | — |
| 404 | Instance not found | — |
| 503 | Instance is not connected to WhatsApp | No active session. |