Skip to main content
GET
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

country
enum<string>
default:US

ISO 3166-1 alpha-2 country of the number: US or CA

Available options:
US,
CA
Example:

"US"

numberType
enum<string>
default:LOCAL

LOCAL for a number in an area code, TOLL_FREE for one from the shared US and Canada toll-free pool

Available options:
LOCAL,
TOLL_FREE
Example:

"LOCAL"

areaCode
string

Three-digit area code, or a toll-free prefix such as 800. When it has no numbers, nearby ones are returned instead, flagged bestEffort.

Pattern: ^\d{3}$
Example:

"415"

contains
string

Digits or letters the number must contain (1 to 7, * matches any digit)

Pattern: ^[0-9A-Za-z*]{1,7}$
Example:

"555"

limit
integer
default:20

Maximum number of results (default: 20, max: 100)

Required range: 1 <= x <= 100

Response

Numbers available to buy

data
object[]
required