Chats

Mute or unmute a chat

Mutes or unmutes a chat for the connected account via a WhatsApp app-state patch. When muting, an optional duration_seconds limits the mute window; omitting it mutes indefinitely.

POST
/chats/{jid}/mute

Mutes or unmutes a chat for the connected account via a WhatsApp app-state patch. When muting, an optional duration_seconds limits the mute window; omitting it mutes indefinitely.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Path Parameters

jid*string

Target chat JID (user or group).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Payload for muting or unmuting a chat.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/chats/5511999999999@s.whatsapp.net/mute" \  -H "Content-Type: application/json" \  -d '{    "muted": true,    "duration_seconds": 28800  }'
{  "success": true,  "chat_jid": "5511999999999@s.whatsapp.net",  "muted": true,  "duration_seconds": 28800}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}