WA Client
POST

Archive / Unarchive

Archive or unarchive a chat. Set archive to true to archive, false to unarchive.

API endpoint
https://waclient.com/api/archive_chat
Example:
curl -X POST \
  'https://waclient.com/api/archive_chat' \
  -H 'Content-Type: application/json' \
  --data '{
    "chat_id": "20100981XXXX",
    "archive": true,
    "instance_id": "6A4B02A1XXXX",
    "access_token": "EMCUH3NQQK8YXXXX"
}'
Response
{
    "status": "success",
    "message": "Success",
    "data": {
        "chat_id": "[email protected]",
        "archived": true
    }
}
ParameterDescription
chat_idChat JID or phone number
archivetrue to archive, false to unarchive
instance_idYour instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc