JavaScript SDK: swarmhit.whatsappAccounts.cancelLink(whatsappAccountId)
Give up a link. A number that never linked goes, however its link ended (waiting, expired or failed), and a device its scan left on the phone is unlinked. A number that was linked before goes back to needing a scan.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/whatsapp-accounts/string/cancel-link"{ "data": { "cancelled": true }}