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
- CompleteOAuth2 or HandleEmbeddedSignupCallback returns available_phone_numbers
- Customer selects which phone numbers to link
- Frontend calls this endpoint with session_id and selected phone_number_ids
- 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
- 200
- default
A successful response.
An unexpected error response.