POST
Get a number for an account

Authorizations

Authorization
string
header
required

A project API key, alt_live_… or alt_test_….

Headers

Idempotency-Key
string

Up to 255 characters. Repeating a request with the same key replays the stored response for 24 hours; the same key with a different request is a 409.

Maximum string length: 255

Body

application/json
account_id
string
required
e164
string
type
enum<string>
Available options:
local,
toll_free

Response

The number.

id
string
required
object
string
required
Allowed value: "phone_number"
account_id
string | null
required
e164
string
required
type
enum<string>
required
Available options:
local,
toll_free
sms_state
enum<string>
required
Available options:
pending_registration,
active,
rejected,
blocked
simulated
boolean
required
created_at
string<date-time>
required