cURL
curl --request PUT \ --url https://{server-url}/chat/archiveChat/{instance} \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data '{ "lastMessage": { "key": { "remoteJid": "<string>", "fromMe": true, "id": "<string>" } }, "archive": true }'
{ "chatId": "553198296801@s.whatsapp.net", "archived": true }
Archive Chat
Your authorization key header
ID of the instance to connect
Messages to be mark as read
Show child attributes
Whether to archive the chat or not
Created
The ID of the chat.
Indicates whether the chat is archived.