Export Mode
Exports tokens from a specific mode in your chosen format. This is the most commonly used export endpoint.Endpoint
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Tokenset ID |
modeId | string | Yes | Mode ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | Export format (default: json) |
Supported Formats
| Format | Description | Use Case |
|---|---|---|
json | W3C Design Tokens | Universal, framework-agnostic |
css | CSS Custom Properties | Web projects |
ios | Swift UIColor/CGFloat | iOS apps |
android | XML Resources | Android apps |
Response Examples
JSON Format (W3C)
Content-Type:application/json
CSS Format
Content-Type:text/css
iOS Format (Swift)
Content-Type:text/plain
Android Format (XML)
Content-Type:application/xml