VoxLink.ai

Phone Numbers

Purchase phone number

Purchase a dedicated phone number

This endpoint allows you to purchase a phone number that was found using the search endpoint. The platform automatically handles pricing, billing, and provisioning.

You must have a valid payment method on file before purchasing a phone number. The purchase creates a monthly subscription that will auto-renew.

Request Body

phone_numberstringrequired

The phone number to purchase in E.164 format (e.g., +14155551234). Must be a number returned from the search endpoint.

Response

messagestring

Success message

dataobject

The purchased phone number details

idinteger

  The unique identifier of the phone number

phone_numberstring

  The phone number in E.164 format

country_codestring

  The ISO country code

typestring

  The phone number type (always `normal` for purchased numbers)

sms_capableboolean

  Whether the number supports SMS
{
  "message": "Phone number purchased successfully.",
  "data": {
    "id": 123,
    "phone_number": "+14155551234",
    "country_code": "US",
    "type": "normal",
    "sms_capable": true
  }
}
{
  "error": "This phone number is already in use."
}
{
  "error": "This phone number is not available for purchase. Please search for available numbers first."
}
{
  "error": "No payment method found. Please add a payment method to your account."
}
{
  "error": "Payment failed. Please update your payment method."
}
{
  "error": "Unable to parse phone number. Please provide a valid E.164 format number."
}
{
  "error": "Failed to purchase phone number from provider. Please contact support."
}

How It Works

  1. Search - First use the search endpoint to find available numbers
  2. Purchase - Submit the phone number you want to this endpoint
  3. Automatic Processing - The platform:
    • Validates the number is still available
    • Determines the correct pricing based on country
    • Creates a monthly subscription on your payment method
    • Provisions the number with our telephony provider
    • Creates the phone number record in your account

Phone number purchases are non-refundable. The subscription will continue until you release the number.

Related guides