Connect WhatsApp
Verify the code
Sends the code to Meta and returns the number’s verification status.
- Console only: owner or admin
- Workspace:
X-Tenant-ID
Path parameters
iduuidrequiredChannel id (from
channels[].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.
Body
application/jsoncodestringrequiredThe code from the SMS or voice call.
Response
200 OKapplication/json
channel_iduuidChannel id.
phone_idstringMeta phone number id.
waba_idstringWhatsApp Business Account id.
phonestringSaved phone number.
statusenumMeta’s
code_verification_status:VERIFIED,EXPIRED,NOT_VERIFIEDorUNKNOWN.verifiedbooleantruewhen the number is verified.display_phone_numberstringmay be absentPhone number as Meta displays it.
Status codes
- 200OK. The verification status after the check.
- 400Bad request.
enter the verification code from SMS or voice(format),Meta rejected that verification code. Request a new code and try again, orinvalid request. - 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 Cloud API channel with this id in the workspace.
- 502Bad gateway. Meta returned a server error. Errors coming from Meta add
meta_code,meta_subcodeandmeta_titlewhen Meta provides them.