Connect WhatsApp
Remove Cloud API numbers
With ?id=, removes that Cloud API number. Without it, removes all Cloud API credentials of the workspace. Returns the remaining channel configuration.
- Console only: owner or admin
- Workspace:
X-Tenant-ID
Headers
CookiestringrequiredThe
whatsappx_sessioncookie the app sets when you sign in. Browsers send it automatically; API keys are not accepted on this endpoint.X-Tenant-IDuuidrequiredWorkspace id. Required for session requests. You can pass
?tenant=<id>instead.
Query parameters
iduuidoptionalChannel to remove. Leave it out to remove every Cloud API number.
Response
200 OKapplication/json
configuredbooleantruewhen at least one Meta (Cloud API) number is connected.activeenummetawhen a Cloud API number is connected, otherwisescan.iduuidmay be absentId of the primary Meta channel.
providerstringmay be absentmetafor the primary channel.phone_idstringmay be absentMeta phone number id of the primary channel.
waba_idstringmay be absentWhatsApp Business Account id of the primary channel.
phonestringmay be absentPhone number of the primary channel.
versionstringmay be absentGraph API version of the primary channel.
webhook_pathstringmay be absentCallback path Meta should call, for example
/api/webhooks/meta.webhook_urlstringmay be absentFull callback URL, when the public URL is configured.
webhook_managedbooleantruewhen whatsappx.si manages the Meta app and webhook subscription for you.live_sendbooleanMessages are sent for real (always
true).channelsarray<object>may be absentAll connected Meta numbers.
Show child attributesHide child attributes5
iduuidChannel id.
phone_idstringMeta phone number id.
waba_idstringWhatsApp Business Account id.
phonestringDisplay phone number saved for the channel.
versionstringGraph API version, for example
v23.0.
Status codes
- 200OK. The channel configuration after the removal.
- 400Bad request.
idis not a valid UUID. - 401Unauthorized. No signed-in session (
unauthorized). - 403Forbidden. API keys can never call this endpoint (
API keys cannot administer workspaces). A signed-in user who is not an owner or admin getsadmin required; a user who is not a member of the workspace getsforbidden. - 404Not found. No channel with this id.
- 500Server error. Something went wrong on our side. Retry with backoff.