Import phone number

Imports a custom phone number into your workspace. This is useful for direct SIP dialing scenarios where your telephony provider does not offer elastic SIP trunking.

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.
friendly_namestringOptional

A human-readable name for the phone number.

trunk_usernamestringOptional
Optional SIP trunk username for authentication.
trunk_pwdstringOptional
Optional SIP trunk password for authentication.

Response

200
statusstring or null
Whether the request was successful.
responseobject or null

Errors