DELETE /v1/projects/{id}/platforms/whatsapp-business/account
Disconnects every attached WhatsApp sender, then unsubscribes our app and removes the project’s business account connection. Photon VoIP lines and the numbers in Meta remain. Requires Idempotency-Key. Poll the returned operation. Meta’s answers do not fail it: each sender is released as DELETE /platforms/resources/:resourceId does, and our app’s unsubscribe is a best effort, tried up to three times, a second or two apart, only while the failure is temporary. New signups are blocked while disconnecting, and existing provisions must finish before this request can be accepted. If the operation fails, its error is the problem of one of these codes: WHATSAPP_ACCOUNT_DISCONNECT_FAILED.
- TypeScript
- Python
- Rust
- Go
TypeScript
Parameters
Returns
200 The replayed disconnect operation is terminal. Operation
Why the operation failed: the problem of its
code, the same object the endpoint returns when it rejects a request, with the status that rejection would have had (the poll itself answers 200). Every code an operation can end with is a branch below, and the endpoint that starts the operation lists its codes. Branch on code, never on status, and keep a default: a code added after your client was generated arrives as a generic problem with type: about:blank and status: 500. That 500 means this document does not describe the code yet, not that the request failed on our side or that retrying will help.202 Account disconnect accepted. Poll Location after Retry-After. Operation
Headers: Location. The raw response carries these headers; see Raw responses.
Why the operation failed: the problem of its
code, the same object the endpoint returns when it rejects a request, with the status that rejection would have had (the poll itself answers 200). Every code an operation can end with is a branch below, and the endpoint that starts the operation lists its codes. Branch on code, never on status, and keep a default: a code added after your client was generated arrives as a generic problem with type: about:blank and status: 500. That 500 means this document does not describe the code yet, not that the request failed on our side or that retrying will help.