Skip to main content
POST
Bolna reads the phone number from Meta using phone_number_id and the token, so the number must belong to the WhatsApp Business Account the token can access.

Next steps

After connecting the number, enable calling on it with the returned number_id.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

WhatsApp Business Account and phone number to connect

Provide exactly one of token_code or business_token.

waba_id
string
required

Your WhatsApp Business Account ID.

Example:

"1624864819249082"

phone_number_id
string
required

Meta's phone number ID for the number to connect.

Example:

"1286951411170717"

business_token
string

A system user access token for the WhatsApp Business Account, with the whatsapp_business_management and whatsapp_business_messaging permissions.

token_code
string

The code returned by Meta's Embedded Signup. Bolna exchanges it for an access token.

Response

WhatsApp Business Account and phone number connected

integration_id
string

The id of the connected WhatsApp Business Account on Bolna.

Example:

"6f1c2a7e-3b4d-4e5f-9a8b-7c6d5e4f3a2b"

number_id
string

The id of the connected phone number on Bolna. Use it with the provision, map-agent, unlink-agent and delete number APIs.

Example:

"9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"