Skip to main content
POST
/
v1
/
phone-numbers
cURL
curl --request POST \
  --url https://api.buildwithchirp.com/v1/phone-numbers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumberId": "ph_2DbBs7GWhGvVNJGrDXr5RG0mBWI",
  "telnyxMessagingProfile": "1234567890abcdef"
}
'
{
  "phoneNumberId": "ph_2DbBs7GWhGvVNJGrDXr5RG0mBWI",
  "appId": "app_2DbBs7GWhGvVNJGrDXr5RG0mBWI",
  "number": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

App API key (format: sk_live_app_* or sk_test_app_*) for app-level operations

Body

application/json
phoneNumberId
string
required

ID of the phone number to add to the app

Example:

"ph_2DbBs7GWhGvVNJGrDXr5RG0mBWI"

telnyxMessagingProfile
string
required

Telnyx messaging profile ID

Example:

"1234567890abcdef"

Response

Phone number added successfully

phoneNumberId
string
required

Unique identifier for a Phone Number. Format: ph_[test_]{ksuid}

Example:

"ph_2DbBs7GWhGvVNJGrDXr5RG0mBWI"

appId
string
required

Unique identifier for a App. Format: app_[test_]{ksuid}

Example:

"app_2DbBs7GWhGvVNJGrDXr5RG0mBWI"

number
string
required
createdAt
string
required
updatedAt
string
required