Skip to Content
Developers
Buying numbers

Search numbers for sale

Needs the numbers-purchase:read scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/numbers/available

Searches the carrier’s numbers by country, type and area code or prefix, as the portal’s Buy numbers search does. Nothing is reserved: order the ones you want with POST /numbers/orders.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Query Parameters

country?string
Default"US"
Value in"US""CA"
type?string
Default"local"
Value in"local""toll_free"
prefix?string
Match^\d{3,7}$
limit?integer
Range1 <= value <= 100
Default25

Response Body

Success

application/json
  1. response
data*array<>
currency*string
inStock*integer

Numbers of this type the account already holds on no campaign: worth using first.

Range-9007199254740991 <= value <= 9007199254740991
Example Request
curl 'https://api.traki.io/v1/account/numbers/available' \  -H "Authorization: Bearer $TRAKI_KEY"
Example Response
{  "data": [    {      "number": "string",      "type": "string",      "country": "string",      "locality": "string",      "region": "string",      "features": [        "string"      ],      "monthlyPrice": "string",      "setupPrice": "string"    }  ],  "currency": "string",  "inStock": -9007199254740991}