Skip to main content

List tokens

string
Filter by token type (e.g., color, spacing, font.size).
string
default:"flat"
Response format: flat (array) or nested (object tree).

Flat response (default)

Nested response

Names that are also groups

A token can be named after a group of other tokens — color.brand alongside color.brand.hover. In the tree, color.brand has to be both a value and a group, so its value moves one level down into the reserved $root key (W3C DTCG §6.1), exactly as the DTCG export does:
Read {group}.$root as the token named {group}. Only names that are actually shadowed move — a group with no token of its own never gets a $root key. The flat format is unaffected: it keeps the token’s real name.
total counts the tokens present in the response body. In the nested format that can be lower than the number of tokens in the design system, since a name that cannot be expressed as an object key is omitted from the tree.

Get a single token

Retrieve a token by name using path segments:
Returns 404 if the token does not exist.

Token value shapes

Each token type has a specific value structure: