JavaScript SDK: swarmhit.whatsappAccounts.delete(whatsappAccountId)
Unlink the number: its device leaves the phone, its chats leave the inbox, and it leaves every campaign pool (leads it never wrote to move to the remaining numbers).
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/whatsapp-accounts/string"{ "data": { "ok": true }}Scan again POST
**JavaScript SDK:** [`swarmhit.whatsappAccounts.relink(whatsappAccountId, params?)`](/smart-api/sdk/methods#whatsappAccounts) A new QR code (or pairing code) for a number that was logged out, or for a link that expired. Its campaigns and chats carry on once it is linked again. Scanned by another phone than its own number, the link is undone.
Resume a WhatsApp number POST
**JavaScript SDK:** [`swarmhit.whatsappAccounts.resume(whatsappAccountId)`](/smart-api/sdk/methods#whatsappAccounts)