orvachat

Chats

Archive Chat

POST/api/v1/chat/archive

Archive or unarchive a chat.

Parameters

  • jidstringRequired

    The chat id to archive.

  • archivebooleanRequired

    true to archive, false to unarchive.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/chat/archive" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "jid": "[email protected]",
  "archive": true
}'