TryVox

Purchase a Number

Buy a phone number from the catalog.

Purchase an available phone number from the TryVox catalog. Once purchased, the number is immediately active and ready to be configured.

Endpoint

POST /v1/account/{account_id}/numbers/purchase-from-inventory

Request Body

FieldTypeRequiredDescription
e164stringYesPhone number in E.164 format (e.g., "+919876543210")
countrystringYesISO 3166-1 alpha-2 country code (e.g., "IN", "US")

Request Example

curl --request POST \
  --url https://api.tryvox.io/v1/account/acc_123abc/numbers/purchase-from-inventory \
  --header 'Authorization: Bearer tvx_sk_live_...' \
  --header 'Content-Type: application/json' \
  --data '{
    "e164": "+919876543210",
    "country": "IN"
  }'

Response

{
  "e164": "+919876543210",
  "country": "IN",
  "type": "local",
  "region": "Maharashtra",
  "status": "active",
  "capabilities": ["voice", "sms"],
  "monthly_fee": 2.50,
  "setup_fee": 0.00,
  "currency": "USD",
  "trunk_id": null,
  "application_id": null,
  "created_at": "2026-04-09T10:30:00Z",
  "updated_at": "2026-04-09T10:30:00Z"
}

Response Fields

FieldTypeDescription
e164stringPhone number in E.164 format
countrystringISO 3166-1 alpha-2 country code
typestringNumber type: "local", "toll_free", or "mobile"
regionstringState or region where the number is located
statusstringNumber status (always "active" on purchase)
capabilitiesarraySupported capabilities: "voice", "sms", "mms"
monthly_feenumberMonthly recurring fee in USD
setup_feenumberOne-time setup fee in USD
currencystringCurrency for pricing (always "USD")
trunk_idstringnull
application_idstringnull
created_atstringISO 8601 timestamp of purchase
updated_atstringISO 8601 timestamp of last update

Billing

Purchased numbers are billed monthly on a pro-rated basis:

  • Monthly fees are charged at the beginning of each billing cycle
  • Setup fees (if any) are charged once at the time of purchase
  • Billing starts immediately upon successful purchase

See the pricing documentation for detailed rates by country and number type.

Error Handling

Common errors:

Error CodeDescription
400Invalid E.164 format or country code
404Number not found in available inventory
409Number already purchased by another account
402Insufficient account balance

Next Steps

After purchasing a number:

On this page