Chats
Archive Chat
POST
/api/v1/chat/archiveArchive or unarchive a chat.
Parameters
- jidstringRequired
The chat id to archive.
- archivebooleanRequired
true to archive, false to unarchive.
| Name | Type | Required | Description |
|---|---|---|---|
| jid | string | Yes | The chat id to archive. |
| archive | boolean | Yes | 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
}'