Read the root company profile and call settings.
curl --request GET \
--url https://omni-api.sendblue.com/admin/company-settings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/admin/company-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/company-settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "50fa2715-53a7-45f8-96ea-f5cc3dd78927",
"name": "acme",
"dba": "Acme",
"website": null,
"primary_phone": null,
"country": "US",
"state": null,
"default_forwarding_number": null,
"call_forwarding_enabled": false,
"call_recording_enabled": false,
"inbound_first_allowed": true,
"notification_email": null,
"dev_center_enabled": true,
"verified": false
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Read the root company profile and call settings.
Available to a verified current seat or root account token. API keys and subaccounts receive 403.
Required permission: company_settings:read. Accepted credentials: a signed-in person, the account token.
GET
/
admin
/
company-settings
Read the root company profile and call settings.
curl --request GET \
--url https://omni-api.sendblue.com/admin/company-settings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/admin/company-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/company-settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "50fa2715-53a7-45f8-96ea-f5cc3dd78927",
"name": "acme",
"dba": "Acme",
"website": null,
"primary_phone": null,
"country": "US",
"state": null,
"default_forwarding_number": null,
"call_forwarding_enabled": false,
"call_recording_enabled": false,
"inbound_first_allowed": true,
"notification_email": null,
"dev_center_enabled": true,
"verified": false
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret
Response
The company's stored profile and call settings.