Skip to main content
POST
Create Token

Create Token

Creates a new design token in a specific mode.
Write access policy - This endpoint requires the write:tokens scope.
  • TEAM-owned workspace: owner, admin, editor can write; viewer is blocked (403).
  • Non-TEAM workspace: only the workspace owner can write.
  • If the workspace owner plan has no API write access (for example FREE), write is blocked.

Endpoint

Request

Path Parameters

Body Parameters

Valid Token Types

  • color - Color values
  • dimension - Sizes and spacing
  • fontFamily - Font families
  • fontWeight - Font weights
  • fontSize - Font sizes
  • lineHeight - Line heights
  • letterSpacing - Letter spacing
  • duration - Animation durations
  • cubicBezier - Easing functions
  • number - Numeric values
  • strokeStyle - Stroke styles
  • border - Border definitions
  • transition - Transition definitions
  • shadow - Shadow effects
  • gradient - Gradient definitions
  • typography - Complete typography definitions
  • string - String values
  • boolean - Boolean values

Response

Status: 201 Created

Examples

Error Responses

400 Bad Request

404 Not Found

Naming Convention

Use dot notation for hierarchical organization:

Examples

Good:
  • colors.primary.500
  • spacing.component.padding.x
  • font.size.heading.h1
Bad:
  • primaryColor500
  • spacing_base
  • fontSizeBody

Token Aliases

Create semantic tokens that reference base tokens:

Batch Creation

Create multiple tokens:

Next Steps

Update Token

Update token details

List Tokens

View all tokens