Skip to main content
POST
Create phone number

Body

Payload required to purchase and create a new phone number. A botId, language, and voiceId are required. The voiceId must support the requested language.

orgId
string<uuid>
required

The organization ID that will own this phone number

botId
string<uuid>
required

The bot ID to attach the phone number to

name
string
required

Friendly name for the phone number. Use letters, numbers, spaces, and basic punctuation. Names are capped at 100 characters.

Maximum string length: 100
Pattern: ^[A-Za-z0-9 .,_'()&#+/:;-]+$
language
enum<string>
required

The language of the phone number. ENGLISH_SPANISH supports bilingual English/Spanish calls.

Available options:
ENGLISH,
ENGLISH_SPANISH,
SPANISH,
FRENCH
voiceId
enum<string>
required

The voice of the phone number. Each voice supports a single language and must match the phone number's language: WARM_ENGLISH_SPANISH requires ENGLISH_SPANISH, WARM_SPANISH requires SPANISH, WARM_FRENCH requires FRENCH, and all other voices require ENGLISH.

Available options:
FRIENDLY_BRIGHT,
CALM_REASSURING,
POLISHED_PROFESSIONAL,
KIND_CURIOUS,
CONFIDENT_UPBEAT,
WARM_ENGLISH_SPANISH,
WARM_SPANISH,
WARM_FRENCH
areaCode
string

Optional 3-digit US area code to use when purchasing the phone number. Send an empty string or omit the field to use the default area code.

Pattern: ^(?:\d{3})?$
verifiedCallerId
string

Verified caller ID for outbound calls. Must be pre-registered and verified for the organization.

callbackForwardingNumber
string

If a recipient calls back an outbound number, the call will be forwarded to this phone number. Note: This field will be ignored for inbound numbers and only applied to outbound numbers.

customGreeting
string

Custom greeting spoken verbatim as the first words of inbound calls on this number. Overrides the bot's greeting, so write it in the phone number's language.

Maximum string length: 500
customClosedGreeting
string

Custom greeting spoken verbatim when an inbound call arrives outside office hours. Overrides the bot's closed phone greeting, so write it in the phone number's language.

Maximum string length: 500

Response

Response returned after purchasing and creating a phone number

success
enum<boolean>
required
Available options:
true
data
object
required

Represents a phone number and its configuration