Skip to main content
POST
/
v1
/
organization
/
apps
/
{appId}
/
phone-numbers
cURL
curl --request POST \
  --url https://9dc2c77e6dbf.ngrok-free.app/v1/organization/apps/{appId}/phone-numbers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumberId": "123e4567-e89b-12d3-a456-426614174001",
  "telnyxMessagingProfile": "1234567890abcdef"
}
'
{
  "phoneNumberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "appId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "number": "<string>",
  "numberType": "local",
  "location": "San Francisco, CA",
  "features": [
    "SMS",
    "MMS",
    "Voice"
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Admin API key (format: sk_admin_*) for organization-level operations

Path Parameters

appId
string<uuid>
required
Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json
phoneNumberId
string<uuid>
required

UUID of the phone number to add to the app

Example:

"123e4567-e89b-12d3-a456-426614174001"

telnyxMessagingProfile
string
required

Telnyx messaging profile ID

Example:

"1234567890abcdef"

Response

Phone number added successfully

phoneNumberId
string<uuid>
required
appId
string<uuid>
required
number
string
required
numberType
enum<string>
required

Type of phone number

Available options:
local,
tollfree,
mobile
Example:

"local"

location
string
required

Geographic location of the phone number

Example:

"San Francisco, CA"

features
string[]
required

Features supported by the phone number

Example:
["SMS", "MMS", "Voice"]
createdAt
string
required
updatedAt
string
required