Export the brand as design tokens
const url = 'http://localhost:3000/api/v1/brand/tokens?format=css&fonts=none';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/brand/tokens?format=css&fonts=none' \ --header 'Authorization: Bearer <token>'Colors, numbers, fonts and the type scale as code. css: custom properties on :root, with @font-face for every font file. scss, less: the same as Sass or Less variables. tailwind: a Tailwind 4 @theme; tailwind3: theme.extend for tailwind.config.js. ts: one typed object. shadcn: shadcn/ui’s variables; mui: a Material UI createTheme; chakra: a Chakra UI 3 system. json: W3C Design Tokens (DTCG 2025.10), grouped by key, for Style Dictionary, Tokens Studio or a Figma importer; font files are under $extensions. designmd: DESIGN.md for coding agents, the tokens as YAML front matter and the guidance as prose. A rule set in one of the brand’s fonts aliases it. Sentences and do/don’t lists are guidance, not tokens, and are left out of every format but designmd.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The output
A brand’s slug; the default brand without it
Resolve for this context, e.g. dark-background
Live: the release readers see, as a site built from the brand shows it; a number: that release. The draft without it
None: leave out the @font-face rules, for a site that serves its own font files
Responses
Section titled “Responses”The tokens, as text: CSS, Sass, Less, JS, TypeScript or JSON
default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}