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_numberstring required
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
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
- Search - First use the search endpoint to find available numbers
- Purchase - Submit the phone number you want to this endpoint
- 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

