orvachat

Chats

Mute Chat

POST/api/v1/chat/mute

Mute 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.

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
}'