Skip to main content
POST
Buy Phone Number

Headers

authorization
string | null

Body

application/json

Buy a number a search returned. On Twilio, the account it is bought on is the pair given here, else the platform's TWILIO_* account; bind the number with the same pair.

e164_number
string
required
Pattern: ^\+[1-9]\d{1,14}$
twilio_account_sid
string | null
Pattern: ^AC[0-9a-fA-F]{32}$
twilio_auth_token
string | null
Required string length: 1 - 256
carrier
enum<string>
default:twilio

The carrier whose account the number is bought on.

Available options:
twilio,
telnyx

Response

Successful Response

The response is of type Response Buy Phone Number V1 Phone Numbers Purchase Post · object.