Skip to main content
POST
cURL

Authorizations

X-Auth-ID
string
header
required

Your Vobiz account Auth ID (MA_XXXXXXXX).

X-Auth-Token
string
header
required

Your Vobiz account Auth Token.

Body

application/json

The number to buy, taken from a GET /numbers/available result.

e164
string
required

The number to buy, in E.164 format, exactly as returned in e164 by GET /numbers/available. Required.

Example:

"+14155550100"

country
string
required

ISO 3166-1 alpha-2 code of the number's country, for example US. Required, and must match the number; a mismatch returns 400.

Example:

"US"

numberKey
string

The numberKey from GET /numbers/available. Required when the search result has a non-empty numberKey, as for CA and GB numbers; omit it for US numbers, which are bought by e164 alone.

Response

The number is bought, charged and routed to your account.

The result of a successful purchase: the billing record and the routing record.

purchase
object

The purchase record, with status: purchased, the amounts charged and nextBillingAt.

number
object

The routing record that connects the number to your account. The number appears in GET /numbers from this point.