Branding API
Brand tokens for the signed-in user's organization. This is the single place later surfaces (player, certificates, learner home) read brand tokens.
Get my resolved brand
GET /api/branding/me
Needs a signed-in user; otherwise 401. Takes no parameters. The brand is read from the brand_key on the caller's own organization node, or the closest ancestor that has one. Names are never matched. With no assignment in the chain the response is the Aztec brand with isFallback true.
{
"brandKey": "acme_workforce",
"displayName": "ACME Workforce",
"isFallback": false,
"resolvedFromOrganizationId": "a2e7c000-0000-4000-8000-000000000002",
"tokens": {
"primaryColor": "#0B6B3A",
"fontFamily": "Inter, sans-serif",
"logoUrl": "/brand/acme-workforce-logo-placeholder.svg",
"logoAltText": "ACME Workforce",
"wordmarkText": "ACME Workforce"
}
}
isFallbackis true only when no node in the caller's chain has abrand_key. An explicitaztecassignment returns false.resolvedFromOrganizationIdis the caller's own node or one of its ancestors, and null for the fallback.logoAltTextis English or US Spanish, chosen fromAccept-Language(English when neither is listed).
Front end behaviour
The web app calls the endpoint once per session after sign-in and keeps the result in session storage until sign-out. If there is no response within 3 seconds, the call fails, or the tokens are unusable, it applies the bundled Aztec token set and logs a warning. Signed-out pages always use the bundled set.