List Available Numbers

GET https://{{axpAPIDomain}}/api/admin/voice/v1/accounts/:accountId/available-phone-numbers?countryCode=US&type=LOCAL&pageNumber=1&pageSize=5

This API requires the Account Administrator role.

List available phone numbers

Request Params

KeyDatatypeRequiredDescription
countryCodestring(Required) Two letter ISO country code present here "https://www.iban.com/country-codes". Not all code supported which are listed here.
typestring(Required) The type of phone number. Acceptable values are LOCAL or TOLLFREE.
areaCodenumberFilters list of available numbers based on area code.
phoneNumberstringSpecifies the desired characters contained within the available numbers to list.
pageNumbernumberThe page number of the records to retrieve. Default value is 1.
pageSizenumberThe max number of records to retrieve per page. Default value is 5, Any value like 5,10,15,20,25,30 is allowed. If value comes more than 1000 then max 1000 records will be returned.

HEADERS

KeyDatatypeRequiredDescription
appkeystring
Acceptstring

RESPONSES

status: OK

{"pagination":{"pageNumber":2,"pageSize":10,"total":45},"phoneNumbers":[{"phoneNumber":"+16479308804","countryCode":"US","type":"LOCAL","documentationRequired":true}],"links":{"prev":"/api/admin/voice/v1/accounts/:accountId/available-phone-numbers?pageNumber=1\u0026pageSize=10","next":"/api/admin/voice/v1/accounts/:accountId/available-phone-numbers?pageNumber=3\u0026pageSize=10"}}