Read the branding
GET
The product name, the logos, mark and icons (as sha256:<hash>, served at GET /branding/images/{hash}) and the colours, null where the neutral default applies; meta.tokens holds the theme tokens the colours give for light and dark, meta.contrast the contrast of every pair they make. Needs no token: the editor reads it before anyone signs in, and it holds nothing sensitive. Cache-Control: public, no-cache with an ETag: send it back as If-None-Match for a 304.
application/vnd.api+json- response
data*The platform’s branding. id is always branding. Null fields take the neutral defaults.
curl -X GET 'http://localhost:3000/branding'Example Response
{ "data": { "type": "Branding", "id": "string", "attributes": { "productName": "string", "logoLight": "string", "logoDark": "string", "mark": "string", "favicon": "string", "appIcon": "string", "primary": "string", "accent": "string", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "tokens": { "light": { "primary": "string", "primary-foreground": "string", "ring": "string", "accent": "string", "sidebar": "string", "sidebar-border": "string", "sidebar-primary": "string", "sidebar-primary-foreground": "string", "sidebar-ring": "string" }, "dark": { "primary": "string", "primary-foreground": "string", "ring": "string", "accent": "string", "sidebar": "string", "sidebar-border": "string", "sidebar-primary": "string", "sidebar-primary-foreground": "string", "sidebar-ring": "string" } }, "contrast": [ { "theme": "light", "pair": "string", "colour": "primary", "ratio": 0, "required": 0 } ] } }}