Skip to main content
GET
Export Tokenset

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.
This endpoint is part of the API-token surface (/api/v1) and does not accept an environment selector. For environment-based exports (active release per org environment), use: /api/organizations/{orgId}/environments/{environmentId}/export.

Endpoint

Request

Path Parameters

Query Parameters

Supported Formats

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

Examples

JavaScript Example

Error Responses

400 Bad Request

404 Not Found

Use Cases

1. Download Complete Tokenset

Export all modes for local development:

2. CI/CD Build Step

Automatically sync tokens during builds:

3. Multi-platform Export

Generate platform-specific files:

Best Practices

1. Cache Exports

Tokens don’t change frequently:

2. Automate Syncing

Set up scheduled exports:

3. Version Control

Commit generated files:

Next Steps

Export Single Mode

Export a specific mode

GitHub Actions

Automate token syncing