POST /v1/projects/{id}/platforms/whatsapp-business/numbers
Exchanges the authorization code Embedded Signup returned and connects exactly the selected phone number as one whatsapp_sender. Send the WABA id and phone-number id emitted by the same popup attempt; both are treated as selectors and verified against Meta before use. A selected number that matches a non-retired, same-project voip_line is linked to it; a number absent from Photon inventory stays unbound; a matching non-retired cosmos_line, foreign VoIP line or unassigned VoIP line fails the operation before registration. Connecting is free — no plan requirement — but Billing must report the project’s organization as ready with a payment method on file. The Idempotency-Key is required and permanent: replaying the same key returns the original operation forever. Requires the platforms:write permission bound to the project resource in the path.
- TypeScript
- Python
- Rust
TypeScript
Parameters
string
required
Identifies one logical mutation across retries.
string
required
Body
string
required
string
required
string
required
Returns
202 The code was accepted and onboarding was dispatched. GET the Location after the Retry-After interval until the operation is terminal. Operation
Headers: Location. The raw response carries these headers; see Raw responses.
boolean
required
string (date-time)
required
object
string (date-time)
OperationError
string
required
string
required
OperationReason
string
string
required
string (date-time)
OperationState
required
OperationType
required
string (date-time)
required