v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
Connect

Complete number selection

Bind a specific WhatsApp phone number to the Zernio profile after the user picks one from listWhatsAppPhoneNumbers. Exchanges the short-lived OAuth token for a long-lived token, subscribes the WABA to webhooks, and creates the SocialAccount.

post/v1/connect/whatsapp/select-phone-number

Headers

X-Connect-Tokenstring

Alternative auth for API users' end customers

Request body

profileIdstring required

The Zernio profile ID

phoneNumberIdstring required

The selected phone number ID (from listWhatsAppPhoneNumbers)

wabaIdstring required

The WABA ID containing the selected phone

tempTokenstring required

The temporary access token from the headless redirect

userProfileobject

Optional user profile data (passthrough)

redirect_urlstring

Optional URL to receive the post-connection redirect target

Response

Phone number connected successfully

messagestring
redirect_urlstring

Present only if redirect_url was provided in the request