Skip to main content
POST
Buy a number

Authorizations

Authorization
string
header
required

Your Wixzel Voice API key: Authorization: Bearer wv_live_.... Keys are scoped; grant only what the integration needs.

Headers

Idempotency-Key
string
required

A unique value per purchase attempt, e.g. a UUID.

Required string length: 1 - 255

Body

application/json
sip_trunk_id
string
required

A trunk made by connecting a carrier account. The number is bought on that account.

Pattern: ^[0-9a-f]{24}$
Example:

"6a96a3ead6e886d42462dd3e"

phone_number
string
required
Pattern: ^\+[1-9]\d{6,14}$
Example:

"+14155550100"

country
string
required

The country you searched in.

Pattern: ^[A-Z]{2}$
Example:

"IN"

type
enum<string>
required

The type you searched for. Used to find the approved regulatory documents it needs.

Available options:
local,
mobile,
toll_free
name
string
Maximum string length: 200
inbound_agent_id
string

Answers inbound calls to the number. It also becomes the agent’s caller id if the agent has none.

Pattern: ^[0-9a-f]{24}$
Example:

"6a96a3ead6e886d42462dd3e"

Response

The number, bought and registered

id
string
required
Pattern: ^[0-9a-f]{24}$
Example:

"6a96a3ead6e886d42462dd3e"

object
enum<string>
required
Available options:
phone_number
phone_number
string
required
name
string | null
required
sip_trunk_id
string | null
required
Pattern: ^[0-9a-f]{24}$
Example:

"6a96a3ead6e886d42462dd3e"

inbound_agent_id
string | null
required
Pattern: ^[0-9a-f]{24}$
Example:

"6a96a3ead6e886d42462dd3e"

status
string
required
created_at
string<date-time>
required

ISO 8601, always UTC.

Example:

"2026-09-01T12:00:00.000Z"

purchase_status
enum<string>
required

pending when the carrier took the order and is still processing it, which can take a few minutes for numbers that need regulatory review. The number is registered either way.

Available options:
complete,
pending