Entity reference · v1
ds-tokens
TOKN-NNNNNNtable ds_tokenssoft deleteDesign system tokens (color/spacing/typography/...).
Endpoints
GET
/api/v1/ds-tokensPOST
/api/v1/ds-tokensGET
/api/v1/ds-tokens/{id}PATCH
/api/v1/ds-tokens/{id}DELETE
/api/v1/ds-tokens/{id}POST
/api/v1/ds-tokens/{id}/restoreWritable fields
* required on create. PATCH treats every field as optional.
| Field | Type | Constraints | Notes |
|---|---|---|---|
| name* | string | ||
| category | string | color | spacing | typography | shadow | border-radius | breakpoint | other | |
| value* | string | ||
| description | text | ||
| css_variable | string | ||
| sort_order | integer | ||
| is_draft | boolean | ||
| metadata | json |
Listing & filtering
- Pagination:
?limit=50&offset=0· max limit 200 - Default sort:
?sort=sort_order&order=asc - Sortable fields: created_at · updated_at · sort_order · name · id_number
- Search (?q=): name, description, css_variable
- Filters: ?category= , repeat any filter to OR multiple values
- Trash: hidden by default; pass
?include_deleted=true
Examples
curlbash
curl 'https://productos.ca/api/v1/ds-tokens?limit=10' \
-H "Authorization: Bearer $TOKEN"Try it out
Paste a token and hit a real endpoint. The request goes from your browser straight to /api/v1/ds-tokens. The token is held in this page only for the request and is never stored.
Try it out
Issue tokens in Settings → API tokens. Token never leaves this page.
GET/api/v1/ds-tokens?limit=3