List Available Cities
curl --request GET \
--url https://app.thinnest.ai/api/v1/phone-numbers/available/cities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/phone-numbers/available/cities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/phone-numbers/available/cities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"name": "Bangalore",
"available": 28140
},
{
"name": "Mumbai",
"available": 19422
},
{
"name": "Pune",
"available": 3120
}
],
"nextCursor": null
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Phone numbers
List Available Cities
The cities Search Available Phone Numbers accepts as city, with how many numbers each has. Use these spellings exactly: “Bangalore” finds numbers where “Bengaluru” finds none. Empty on the Free plan or when the stock cannot be reached. Not paged.
GET
/
phone-numbers
/
available
/
cities
List Available Cities
curl --request GET \
--url https://app.thinnest.ai/api/v1/phone-numbers/available/cities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/phone-numbers/available/cities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/phone-numbers/available/cities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"name": "Bangalore",
"available": 28140
},
{
"name": "Mumbai",
"available": 19422
},
{
"name": "Pune",
"available": 3120
}
],
"nextCursor": null
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
Example:
"org_3fKq9TzQ1mN8vB2xR7cLpA"