Search US local numbers that can be bought.
curl --request GET \
--url https://omni-api.sendblue.com/numbers/available \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/numbers/available', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/numbers/available"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"phone_number": "+14155550100",
"channels": [
"sms"
],
"price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
},
"monthly_price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
}
}
],
"next_cursor": null
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Search US local numbers that can be bought.
A live carrier search. It is not paged; next_cursor is always null.
Each result carries what this account would pay to buy it (price)
and to keep it each month (monthly_price). Filters can be combined.
contains matches digits in the national number. When area_code is
supplied, it matches only the seven digits following the area code.
Invalid or repeated parameters return 400 with the field name.
Required permission: numbers:read. Accepted credentials: a signed-in person, an API key, the account token.
GET
/
numbers
/
available
Search US local numbers that can be bought.
curl --request GET \
--url https://omni-api.sendblue.com/numbers/available \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/numbers/available', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/numbers/available"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"phone_number": "+14155550100",
"channels": [
"sms"
],
"price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
},
"monthly_price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
}
}
],
"next_cursor": null
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret