curl --request POST \
--url https://converso-whatsapp-api.p.rapidapi.com/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'instanceCode: <api-key>' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true,
"chat": "<string>"
}
'{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}Archive Chat
curl --request POST \
--url https://converso-whatsapp-api.p.rapidapi.com/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'instanceCode: <api-key>' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true,
"chat": "<string>"
}
'{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}Your authorization key header
Your rapid api key
Name of the instance