Export Tokenset
Exports all modes of a tokenset in your chosen format. This is useful when you want to download a complete tokenset with all its variations.Endpoint
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Tokenset ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | Export format (default: json) |
Supported Formats
| Format | Description | Extension |
|---|---|---|
json | W3C Design Tokens with mode extensions | .json |
css | CSS variables (separated by mode) | .css |
ios | Swift code for iOS | .swift |
android | XML resources for Android | .xml |
Response
The response content type and structure depend on the chosen format.JSON Format
Content-Type:application/json
CSS Format
Content-Type:text/css
iOS Format
Content-Type:text/plain
Android Format
Content-Type:application/xml