Skip to main content
POST
Assign a default phone number based on country code (V1 alias)
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. There is no public /v1 replacement documented for assigning a default number yet. Keep existing integrations on this endpoint until DialNexa publishes a replacement.
Assigns a default phone number for a country and telephony provider. Use this when your workspace should receive a provider-managed default number for a supported country.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-organization-id
string
required

RSA encrypted organization ID (base64 format)

Example:

"BASE64_ENCRYPTED_ORG_ID_HERE"

Body

application/json
telephonyProviderId
string
required

ID of the telephony provider (14 character string)

Example:

"prov_123456789012"

countryCode
string
required

2-letter country code determining which default number to assign

Example:

"US"

Response

Default phone number assigned successfully.

phoneNumber
string
required

Phone number

Example:

"+1234567890"

status
enum<string>
required

Status of the phone number

Available options:
active,
pending
message
string

Status message

organizationPhoneNumber
object

Organization phone number record