Chats
Mute Chat
POST
/api/v1/chat/muteMute or unmute a chat for a number of seconds.
Parameters
- ChatstringRequired
The chat id: a person (…@s.whatsapp.net or …@lid) or a group (…@g.us).
- MutebooleanRequired
true to mute, false to unmute.
- DurationSecondsintegerOptional
How long to mute, in seconds. Leave it out to mute forever. Leave it out when unmuting.
| Name | Type | Required | Description |
|---|---|---|---|
| Chat | string | Yes | The chat id: a person (…@s.whatsapp.net or …@lid) or a group (…@g.us). |
| Mute | boolean | Yes | true to mute, false to unmute. |
| DurationSeconds | integer | No | How long to mute, in seconds. Leave it out to mute forever. Leave it out when unmuting. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/chat/mute" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Chat": "[email protected]",
"Mute": true,
"DurationSeconds": 3600
}'