Import phone number

View as Markdown
Imports a phone number into your workspace for direct SIP dialing when your telephony provider does not offer elastic SIP trunking. Set `provider_name` to select the provider. For `five9`, `ringcx`, and `zoom`, Synthflow auto-fills the SIP domain (and for Five9, the outbound TLS proxy) from the deployment region, so you only need `workspace_id`, `phone_number`, `provider_name`, and optionally `friendly_name`. Credentials are not required for those providers. For `custom` trunks, set `uac_enabled` to true when your carrier or PBX requires outbound SIP REGISTER traffic, and optionally set `uac_register_expires` (60 to 3600 seconds, default 300).

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
workspace_idstringRequired
The workspace ID to associate the phone number with.
phone_numberstringRequired

The phone number to import. For most providers use E.164. Five9 and Zoom also accept non-E.164 integration or extension identifiers.

friendly_namestringOptional

A human-readable name for the phone number.

provider_nameenumOptional

Telephony provider for the imported number. Omit or use custom for a bring-your-own SIP trunk. Use five9, ringcx, or zoom for those integrations; SIP domain defaults are applied automatically for those three only.

trunk_usernamestringOptional

Optional SIP trunk username for authentication. Required when uac_enabled is true. Not used for five9, ringcx, or zoom.

trunk_pwdstringOptional

Optional SIP trunk password for authentication. Required when uac_enabled is true. Not used for five9, ringcx, or zoom.

termination_uristringOptional
SIP domain or termination URI used for outbound calls (maps to `sip_term_uri`). Required for `custom`, `twilio`, `telnyx`, `vonage`, and `ring_central`. Optional for `five9` (regional IP), `ringcx` (`sip.ringcentral.com`), and `zoom` (`sip.zoom.com`), which are filled automatically when omitted. Requests that omit it for a non-auto provider return 400.
sip_outbound_proxystringOptional

Optional outbound proxy used for outbound calls and SIP REGISTER requests. For five9, Synthflow sets the regional TLS proxy automatically when omitted.

sip_auth_usernamestringOptional

Optional auth username used for SIP REGISTER requests when it differs from trunk_username.

uac_enabledbooleanOptionalDefaults to false

When true, Synthflow sends outbound SIP REGISTER traffic to your carrier or PBX so it can authenticate outbound calls. Requires trunk_username and trunk_pwd. Defaults to false.

uac_register_expiresintegerOptional60-3600Defaults to 300

SIP registration refresh interval in seconds. Only used when uac_enabled is true (or for providers that register implicitly, such as RingCentral). Whole numbers only, between 60 and 3600. Defaults to 300.

Response

200
statusstringOptional
Whether the request was successful.
responseobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error