Skip to content

Get organization brand color

GET
/v1/organization/primary-color
curl --request GET \
--url 'https://api.varman.io/v1/organization/primary-color?token=tok_abc123def456' \
--header 'X-API-Key: <X-API-Key>'

Retrieve the organization primary brand color used for Trust Center theming, portals, and API-driven embedded experiences.

token

Example

tok_abc123def456

Access token for public access (alternative to authentication). When provided, authentication is not required.

Organization primary color retrieved successfully

Media typeapplication/json
object
primaryColor

The primary color in hex format (e.g., #FF5733)

string
nullable
authType

How the request was authenticated

string
Allowed values: api-key session

Example

{
"primaryColor": "#3B82F6",
"authType": "api-key"
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid or expired API key"
}

Organization not found

Media typeapplication/json
object
message
string

Example

{
"message": "Organization with ID org_abc123def456 not found"
}