Skip to main content

LinkPhoneNumbers creates channel configs for selected phone numbers.

POST 

/api/v1/engagements/integrations/whatsapp/link-phone-numbers

After OAuth callback returns available phone numbers, the customer can select which numbers they want to onboard. This endpoint creates channel configurations for the selected phone numbers.

Flow​

  1. CompleteOAuth2 or HandleEmbeddedSignupCallback returns available_phone_numbers
  2. Customer selects which phone numbers to link
  3. Frontend calls this endpoint with session_id and selected phone_number_ids
  4. Backend creates channel configs for each selected number

Errors​

  • INVALID_ARGUMENT: Invalid or expired session_id
  • NOT_FOUND: Phone number not found in WABA
  • INTERNAL: Failed to create channel config

Request​

Responses​

A successful response.