Search available phone numbers
Changed onReturns US or Canadian numbers the carrier has for sale, local or toll-free, narrowed by area code or by digits the number must contain. When an area code has no numbers, nearby ones are returned flagged bestEffort; an empty list means nothing matched. Buy one with POST /v1/phone-number, or let Roark pick with autoPick.
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/phone-number/available
- AuthHTTP bearer
Query parameters
ISO 3166-1 alpha-2 country of the number: US or CA
LOCAL for a number in an area code, TOLL_FREE for one from the shared US and Canada toll-free pool
Three-digit area code, or a toll-free prefix such as 800. When it has no numbers, nearby ones are returned instead, flagged bestEffort.
Digits or letters the number must contain (1 to 7, * matches any digit)
Maximum number of results (default: 20, max: 100)
Response
Numbers available to buy
Example response
{
"data": [
{
"e164": "+14155550123"
}
]
}Changes
- info
added the new optional
queryrequest parametercountry - info
added the new optional
queryrequest parameternumberType - info
for the
queryrequest parameterlimit, the max was increased from50.00to100.00 - info
added the required property
//to the response with the status
- info
- info
endpoint added
- info