curl --request GET \
--url https://omni-api.sendblue.com/numbers/{phone_number}/campaign \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/numbers/{phone_number}/campaign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/numbers/{phone_number}/campaign"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"phone_number": "+14155550100",
"campaign_id": "MG0123456789abcdef0123456789abcdef",
"sms": {
"enabled": false,
"blocked_reason": "carrier_assignment_pending"
},
"assigned_at": "2026-11-23T18:04:05.123456Z",
"activated_at": null
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Read whether a number may send SMS, and under which campaign.
A number can be bought at any time, and places and receives calls
without registration. It sends SMS and MMS only while it is assigned
to an approved campaign and the carrier confirms the assignment; a
send from it is refused otherwise (422 unprocessable,
sender_unavailable). sms.enabled and sms.blocked_reason state
that rule for this number as it stands now. For a number Sendblue
registered for the account, this read returns its carrier SMS state and a null campaign.
Campaign changes on a registered number return 422 unprocessable
with reason registered_number. A fulfilled iMessage line returns 422
with reason operator_managed on campaign changes.
Required permission: numbers:read. Accepted credentials: a signed-in person, an API key, the account token.
curl --request GET \
--url https://omni-api.sendblue.com/numbers/{phone_number}/campaign \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/numbers/{phone_number}/campaign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/numbers/{phone_number}/campaign"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"phone_number": "+14155550100",
"campaign_id": "MG0123456789abcdef0123456789abcdef",
"sms": {
"enabled": false,
"blocked_reason": "carrier_assignment_pending"
},
"assigned_at": "2026-11-23T18:04:05.123456Z",
"activated_at": null
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
Path Parameters
Response
The number's campaign and messaging state.
A number's campaign, and whether it may send SMS and MMS now.