Skip to main content
PUT
/
chats
/
{chatId}
/
mute
Mute or unmute a chat
curl --request PUT \
  --url https://wsapi.chat/chats/{chatId}/mute \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Instance-Id: <x-instance-id>' \
  --data '
{
  "duration": "8h"
}
'
{
  "status": 400,
  "detail": "invalid request body"
}

Authorizations

X-Api-Key
string
header
required

Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.

Headers

X-Instance-Id
string
default:{{instanceId}}
required

The ID of the WhatsApp instance to use

Path Parameters

chatId
string
required

Chat JID (user or group)

Body

application/json
duration
enum<string>
required
Available options:
8h,
1w,
always,
off

Response

Mute setting updated