Skip to main content
POST
Mute chat
Auth: TokenAccount or TokenInstanceRate-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 with duration: "8h". At the end of the period notifications come back automatically, no other call is needed.

Mute permanently

With duration: "always" (also accepts "forever" and "permanent"), the chat stays muted indefinitely until you send another call with mute: false.

Unmute

With mute: 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

string
required
Instance name.

Headers

Request body

string
required
Phone number, private JID (...@s.whatsapp.net or ...@lid), group JID (...@g.us), or newsletter.
boolean
required
true mutes, false unmutes.
string
Mute duration. Accepts the formats in the table below. Ignored when mute=false.

Accepted values for duration

Error responses

Error 400

Archive chat

POST /api/chat/archive/:instance

Block contact

POST /api/chat/block/:instance