cURL
curl --request GET \ --url https://app.tokencraft.dev/api/v1/tokensets/{id}/tokens \ --header 'Authorization: Bearer <token>'
Get all tokens across all modes in a tokenset
GET /tokensets/{id}/tokens
id
200 OK
{ "tokens": [ { "id": "token-1", "tokenset_id": "tokenset-123", "mode_id": "mode-light", "name": "colors.primary.500", "type": "color", "value": "#3b82f6", "description": "Primary brand color", "alias_to": null, "created_at": "2025-01-15T10:00:00Z", "updated_at": "2025-01-15T10:00:00Z" }, { "id": "token-2", "tokenset_id": "tokenset-123", "mode_id": "mode-dark", "name": "colors.primary.500", "type": "color", "value": "#60a5fa", "description": "Primary brand color", "alias_to": null, "created_at": "2025-01-15T10:05:00Z", "updated_at": "2025-01-15T10:05:00Z" } ], "total": 2 }
curl -H "Authorization: Bearer tkc_your_token_here" \ https://app.tokencraft.dev/api/v1/tokensets/tokenset-123/tokens