Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Body

application/json

Purchase a phone number

country
enum<string>
required

The country code for the phone number.

Available options:
US,
IN
phone_number
string
required

E.164 formatted phone number, including country code.

Pattern: ^\+[1-9][0-9]{7,14}$
Example:

"+19876543210"

provider
enum<string>

The telephony provider for the phone number.

Available options:
twilio,
plivo,
vobiz
compliance_application_id
string<uuid>

Optional ID of the approved compliance application under which the phone number should be purchased. Useful when your account has multiple approved compliance applications. Get the IDs from the list compliance applications API.

Example:

"a3f1c2d4-5e6b-4c7d-8e9f-0a1b2c3d4e5f"

Response

Sub-account create response

id
string<uuid>

Unique identifier for the purchased phone number record.

Example:

"133b9a7d-59b1-49c4-b62a-c4924503e38b"

agent_id
string<uuid> | null

Identifier of the agent associated with the number, if applicable.

Example:

null

bolna_owned
boolean

Indicates if the number is owned by Bolna.

Example:

true

deleted
boolean

Indicates whether the number record is deleted.

Example:

false

renewal
boolean

Indicates if the phone number subscription will auto-renew.

Example:

true

payment_uuid
string<uuid>

Unique identifier for the payment transaction.

Example:

"de36c363-6a2d-4e83-ba5b-fbb8d0ac8c32"

phone_number
string

E.164 formatted purchased phone number.

Pattern: ^\+[1-9][0-9]{7,14}$
Example:

"+19876543210"

price
number<float>

Price for the phone number in cents.

Example:

500

telephony_provider
enum<string>

Name of the telephony provider for the number.

Available options:
twilio,
plivo,
vonage,
telnyx
telephony_sid
string

Unique identifier or SID for the phone number within the telephony provider.

Example:

"19876543210"

created_at
string<date-time>

Timestamp when the record was created.

Example:

"2025-07-27T20:51:49.468787"

updated_at
string<date-time>

Timestamp when the record was last updated.

Example:

"2025-07-27T20:51:49.468796"