Get organization brand color
curl --request GET \
--url https://api.trycomp.ai/v1/organization/primary-color \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/organization/primary-color', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/organization/primary-color"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"primaryColor": "#3B82F6",
"authType": "api-key"
}{
"message": "Invalid or expired API key"
}{
"message": "Organization with ID org_abc123def456 not found"
}Organization
Get organization brand color | Comp AI API
Retrieve the organization primary brand color used for Trust Center theming, portals, and API-driven embedded experiences.
GET
/
v1
/
organization
/
primary-color
Get organization brand color
curl --request GET \
--url https://api.trycomp.ai/v1/organization/primary-color \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/organization/primary-color', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/organization/primary-color"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"primaryColor": "#3B82F6",
"authType": "api-key"
}{
"message": "Invalid or expired API key"
}{
"message": "Organization with ID org_abc123def456 not found"
}Authorizations
API key for authentication
Query Parameters
Was this page helpful?

