Connect a SIP trunk number
Authentication
Request
The business’s own number, in E.164 format (phoneNumber must be E.164 (+…) otherwise).
Display name, trimmed. Defaults to <phoneNumber> (own number); when voice is added to the WhatsApp line, the line’s existing label is kept unless you send one.
What the business’s PBX or carrier sends to the agent, so the agent answers on the number. Needs a non-empty allowedAddresses or credentials (400 inbound needs either allowedAddresses (ACL) or credentials (digest auth) — an open trunk answers to anyone).
Response
The connected number (a new entry, or the WhatsApp line with voice added).
One number the workspace holds. channels says what it answers on; provider says where it lives. Field names are camelCase. Returned by every /api/phone-numbers endpoint.

