Get organization brand color
GET
/v1/organization/primary-color
const url = 'https://api.varman.io/v1/organization/primary-color?token=tok_abc123def456';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”token
Example
tok_abc123def456Access token for public access (alternative to authentication). When provided, authentication is not required.
Responses
Section titled “Responses”Organization primary color retrieved successfully
Media typeapplication/json
object
primaryColor
The primary color in hex format (e.g., #FF5733)
string
authType
How the request was authenticated
string
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"}