Chat
Mute chat
Mutes notifications for a chat for a defined or indefinite period
POST
Mute chat
Auth:
Accepted values for
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Mutes (mute: true) or unmutes (mute: false) a chat. The duration parameter accepts several human-readable formats to set the window.
Examples
Mute for 8h
Mutes the chat for an 8-hour window withduration: "8h". At the end of the period notifications come back automatically, no other call is needed.
Mute permanently
Withduration: "always" (also accepts "forever" and "permanent"), the chat stays muted indefinitely until you send another call with mute: false.
Unmute
Withmute: false, removes any active mute on the chat and notifications resume normally. The duration field is ignored in this variant.
Success response
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".
200 OK
Path parameters
Instance name.
Headers
| Name | Required | Example | Description |
|---|---|---|---|
Content-Type | yes | application/json | , |
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
Request body
Phone number, private JID (
...@s.whatsapp.net or ...@lid), group JID (...@g.us), or newsletter.true mutes, false unmutes.Mute duration. Accepts the formats in the table below. Ignored when
mute=false.Accepted values for duration
| Value | Meaning |
|---|---|
"8h" or "8 hours" | 8 hours |
"1w", "7d", or "1 week" | 1 week |
"always", "forever", "permanent" | No expiration |
| (empty) | No expiration |
Error responses
| 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 | , |
Error 400
Related
Archive chat
POST /api/chat/archive/:instanceBlock contact
POST /api/chat/block/:instance