Mutes notifications for a chat for a defined or indefinite period
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
mute: true) or unmutes (mute: false) a chat. The duration parameter accepts several human-readable formats to set the window.
duration: "8h". At the end of the period notifications come back automatically, no other call is needed.
duration: "always" (also accepts "forever" and "permanent"), the chat stays muted indefinitely until you send another call with mute: false.
mute: false, removes any active mute on the chat and notifications resume normally. The duration field is ignored in this variant.
muted indicates the final state and duration comes in seconds (28800 = 8h, 604800 = 1 week, 0 = permanent or unmuted). The message changes per operation: "Chat muted permanently", "Chat muted for 8 hours", "Chat muted for 1 week", or "Chat notifications unmuted successfully".
| Name | Required | Example | Description |
|---|---|---|---|
Content-Type | yes | application/json | — |
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
...@s.whatsapp.net or ...@lid), group JID (...@g.us), or newsletter.true mutes, false unmutes.mute=false.duration| Value | Meaning |
|---|---|
"8h" or "8 hours" | 8 hours |
"1w", "7d", or "1 week" | 1 week |
"always", "forever", "permanent" | No expiration |
| (empty) | No expiration |
| HTTP | error.message | When it happens |
|---|---|---|
| 400 | Instance name is required | — |
| 400 | Invalid request body: <...> | Malformed JSON. |
| 400 | Number is required | — |
| 400 | Invalid duration: <...> | Unrecognized format. |
| 401 | Invalid token | — |
| 404 | Instance not found | — |
| 503 | Instance is not connected to WhatsApp | — |
POST /api/chat/archive/:instancePOST /api/chat/block/:instance