Skip to main content
POST
/
phone-numbers
Create phone number
curl --request POST \
  --url https://api.helloannie.com/v1/phone-numbers \
  --header 'Content-Type: application/json' \
  --data '
{
  "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "botId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "language": "ENGLISH",
  "voiceId": "FRIENDLY_BRIGHT",
  "verifiedCallerId": "<string>",
  "callbackForwardingNumber": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "botId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "number": "<string>",
    "name": "<string>",
    "language": "ENGLISH",
    "outbound": true,
    "verifiedCallerId": "<string>",
    "callbackForwardingNumber": "<string>",
    "voiceId": "FRIENDLY_BRIGHT",
    "speed": 123,
    "stability": 123,
    "similarity": 123,
    "style": 123
  }
}

Body

Payload required to purchase and create a new phone number. Language and voiceId are required.

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

language
enum<string>
required

The language of the phone number

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

The voice of the phone number

Available options:
FRIENDLY_BRIGHT,
CALM_REASSURING,
POLISHED_PROFESSIONAL,
KIND_CURIOUS,
CONFIDENT_UPBEAT
verifiedCallerId
string

Verified caller ID for outbound calls

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.

Response

Response returned after purchasing and creating a phone number

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

Represents a Twilio phone number and its configuration