Skip to main content
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_number string required The phone number to purchase in E.164 format (e.g., +14155551234). Must be a number returned from the search endpoint.

Response

message string Success message data object The purchased phone number details data properties id integer The unique identifier of the phone number phone_number string The phone number in E.164 format country_code string The ISO country code type string The phone number type (always normal for purchased numbers) sms_capable boolean Whether the number supports SMS
201 Created
400 Already In Use
400 Not Available
402 No Payment Method
402 Payment Failed
422 Invalid Format
500 Provider Error

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.