Retrieve design tokens from a tokenCollection record. If no input modifiers are provided, returns the raw token document. If an input object is given (matching a resolver document's modifiers), tokens are resolved against that context.
Parameters
path
string
Optional
JSON Pointer path to a specific subtree within the token collection. When set, only the sub-tree at this path is returned.
ref
string
at-uri
Required
AT-URI of the org.designtxt.tokenCollection record to retrieve.
resolveReferences
boolean
Optional
If true, resolve alias references ({token.name}) inline in the response. Defaults to false.
Output
application/jsonresolvedAt
stringdatetime
Optional
Timestamp when the response was produced.
tokens
unknown
Required
The requested token data. Either the full token collection, the subtree at the requested path, or the resolved token values.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Retrieve design tokens from a tokenCollection record. If no input modifiers are provided, returns the raw token document. If an input object is given (matching a resolver document's modifiers), tokens are resolved against that context.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"resolvedAt": {
"description": "Timestamp when the response was produced.",
"format": "datetime",
"maxLength": 64,
"type": "string"
},
"tokens": {
"description": "The requested token data. Either the full token collection, the subtree at the requested path, or the resolved token values.",
"type": "unknown"
}
},
"required": [
"tokens"
],
"type": "object"
}
},
"parameters": {
"properties": {
"path": {
"description": "JSON Pointer path to a specific subtree within the token collection. When set, only the sub-tree at this path is returned.",
"maxLength": 1024,
"type": "string"
},
"ref": {
"description": "AT-URI of the org.designtxt.tokenCollection record to retrieve.",
"format": "at-uri",
"maxLength": 8192,
"type": "string"
},
"resolveReferences": {
"description": "If true, resolve alias references ({token.name}) inline in the response. Defaults to false.",
"type": "boolean"
}
},
"required": [
"ref"
],
"type": "params"
},
"type": "query"
}