List the account's numbers.
curl --request GET \
--url https://omni-api.sendblue.com/numbers \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"phone_number": "+14155550100",
"friendly_name": "<string>",
"source": "purchased",
"channels": [
"sms"
],
"capabilities": {
"messages": true,
"calls": true
},
"voice_url": "<string>",
"voice_method": "GET",
"voice_fallback_url": "<string>",
"voice_fallback_method": "GET",
"status_callback": "<string>",
"status_callback_method": "GET",
"campaign_id": "<string>",
"sms": {
"enabled": true,
"blocked_reason": "no_campaign"
},
"price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
},
"monthly_price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}List the account's numbers.
Every number the account can send from or receive on, in number
order, including purchased numbers (purchased), lines fulfilled against
iMessage requests (requested), and other registered senders (registered).
Required permission: numbers:read. Accepted credentials: a signed-in person, an API key, the account token.
GET
/
numbers
List the account's numbers.
curl --request GET \
--url https://omni-api.sendblue.com/numbers \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"phone_number": "+14155550100",
"friendly_name": "<string>",
"source": "purchased",
"channels": [
"sms"
],
"capabilities": {
"messages": true,
"calls": true
},
"voice_url": "<string>",
"voice_method": "GET",
"voice_fallback_url": "<string>",
"voice_fallback_method": "GET",
"status_callback": "<string>",
"status_callback_method": "GET",
"campaign_id": "<string>",
"sms": {
"enabled": true,
"blocked_reason": "no_campaign"
},
"price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
},
"monthly_price": {
"amount": "4.00",
"amount_micro_usd": 4000000,
"currency": "USD"
},
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret