API referenceWhatsapp chats
DELETE
/whatsapp/api/v1/chats/{id}

Deleted for the number on WhatsApp too (the phone included), and from Swarmhit's stored history. Needs the number connected.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

id*string

A chat id (wac_…), or a WhatsApp JID / phone number together with account_id.

Query Parameters

account_id?string

The account the id belongs to: required when the path names a JID or a phone number instead of Swarmhit's id.

Lengthlength <= 4096

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/whatsapp/api/v1/chats/wac_k3J9sLq2Vx8nB4mR?account_id=wa_Xk2pQ9rT4vW8yZ1a"
{  "object": "ChatDeleted"}