Skip to main content
POST
Order a phone number
If the number from an earlier order has been canceled, retrying that order’s idempotency key returns 409. Use a new key to order another number.

Authorizations

Authorization
string
header
required

Workspace API token from Settings → Developer.

Headers

Idempotency-Key
string

Reuse with an identical request for 24 hours. A replay returns the current resource state; after 24 hours the key can create a new resource.

Required string length: 1 - 255
Pattern: ^[!-~]+$

Body

application/json
country
string
default:US
Pattern: ^[A-Z]{2}$
Example:

"US"

area_code
string
Pattern: ^[0-9]{3}$
Example:

"415"

Response

Order accepted.

id
string<uuid>
phone_number
string
provider
string
status
enum<string>
Available options:
pending,
ready,
failed,
requires_review
outbound_enabled
boolean
is_default
boolean
direct_call_supported
boolean

Whether this number supports direct API calls, including carrier, region, and Telnyx webhook-key readiness.

outbound_only
boolean

Whether this carrier number has its inbound voice webhook disabled in Thoughtly.