Skip to main content
POST
Import a Twilio number
Adds a number from your own Twilio account, using the account’s credentials to place and receive its calls.
For a new number, SIP trunking is the path to choose: it works with Twilio through Elastic SIP Trunking, and only a SIP-trunk number has an inbound call webhook.
This request stores the number and does not contact Twilio. Inbound calls reach Verbeo only after you point the number at it — call POST /phone-number/{id}/twilio-webhook once the import has succeeded.

Body

string
required
The number in E.164 format — a +, the country code, the number: +14155550123. Spaces, dashes and brackets are accepted and removed.
string
required
Your Twilio Account SID: AC followed by 32 hexadecimal characters.
string
required
Your Twilio Auth Token, exactly as the Twilio console shows it. Up to 128 characters, no spaces. Write-only: no endpoint returns it.
string
Your label for the number, up to 100 characters.
string
UUID of the assistant that answers calls to this number.
string
UUID of the assistant that places calls from this number when a call names none.

Request

Response

201 Created with the phone number object. provider is twilio, and the Auth Token is not in it.

Errors

The credentials are not checked against Twilio here. Wrong ones are reported when you configure the webhook, and when the number first places a call.