Skip to main content

Purchase Numbers

The Purchase API allows you to acquire phone numbers for your Audian account.

Purchase a Phone Number​

Purchase an available phone number.

Endpoint​

POST https://api.audian.com:8443/v2/numbers/purchase

Parameters​

ParameterTypeRequiredDescription
numberstringYesPhone number in E.164 format (e.g., "+14155551234")
friendly_namestringNoUser-friendly name for the number

Request Example​

curl -X POST 'https://api.audian.com:8443/v2/numbers/purchase' \
-H 'X-Auth-Token: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"number": "+14155551234",
"friendly_name": "Support Line"
}'

Response​

{
"success": true,
"data": {
"id": "num_abc123",
"number": "+14155551234",
"friendly_name": "Support Line",
"status": "active",
"purchased_at": "2024-01-15T10:30:00Z",
"expires_at": "2025-01-15T10:30:00Z",
"billing": {
"monthly_cost": 0.99,
"next_charge": "2024-02-15T10:30:00Z"
}
}
}

Response Fields​

FieldTypeDescription
idstringUnique identifier for the purchased number
numberstringPhone number in E.164 format
friendly_namestringUser-friendly name
statusstringCurrent status (active, suspended, etc.)
purchased_atstringISO 8601 timestamp of purchase
expires_atstringISO 8601 timestamp of renewal date
billing.monthly_costnumberMonthly rental cost in USD
billing.next_chargestringISO 8601 timestamp of next billing date

List Purchased Numbers​

Retrieve all phone numbers purchased by your account.

Endpoint​

GET https://api.audian.com:8443/v2/numbers

Parameters​

ParameterTypeRequiredDescription
limitintegerNoMaximum number of results (default: 20, max: 100)
offsetintegerNoPagination offset (default: 0)
statusstringNoFilter by status (active, suspended, etc.)

Request Example​

curl -X GET 'https://api.audian.com:8443/v2/numbers?status=active&limit=20' \
-H 'X-Auth-Token: YOUR_API_KEY'

Response​

{
"success": true,
"data": {
"numbers": [
{
"id": "num_abc123",
"number": "+14155551234",
"friendly_name": "Support Line",
"status": "active",
"purchased_at": "2024-01-15T10:30:00Z",
"expires_at": "2025-01-15T10:30:00Z"
}
],
"total": 5,
"limit": 20,
"offset": 0
}
}

Get Number Details​

Retrieve detailed information about a specific number.

Endpoint​

GET https://api.audian.com:8443/v2/numbers/{number_id}

Request Example​

curl -X GET 'https://api.audian.com:8443/v2/numbers/num_abc123' \
-H 'X-Auth-Token: YOUR_API_KEY'

Billing​

Purchased numbers are billed monthly:

  • Setup fees are charged at purchase time
  • Monthly rental fees are charged on your billing date
  • Unused credits do not roll over to the next month
  • You can cancel a number anytime; charges stop immediately

Best Practices​

  • Set descriptive friendly_name values for easy identification
  • Monitor your account for available credit before purchasing
  • Purchase numbers in bulk if you need multiple numbers
  • Set up proper configuration immediately after purchase

Common Errors​

Error CodeMeaning
NUMBER_UNAVAILABLEThe number is no longer available
INSUFFICIENT_CREDITYour account lacks sufficient credit
INVALID_REGIONYou don't have access to numbers in this region
PURCHASE_FAILEDThe purchase could not be processed