JavaScript
Phone numbers
List available numbers
Browse purchasable phone numbers from Surge inventory before buying.
Pagination cursors are always null for now.
GET
JavaScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The account ID to list available phone numbers for.
Example:
"acct_01j9a43avnfqzbjfch6pygv1td"
Query Parameters
Filter by 3-digit area code.
Pattern:
^\d{3}$Example:
"801"
ISO country code to search in.
Available options:
US, CA Example:
"US"
Whether to search for local or toll-free numbers.
Available options:
local, toll_free Example:
"local"
Cursor for forward pagination. Use the next_cursor from a previous response.
Cursor for backward pagination. Use the previous_cursor from a previous response.