Workspaces
Workspaces are the top-level organizational unit in Tokencraft. Each workspace can contain multiple tokensets and serves as a container for related design tokens.What is a Workspace?
A workspace is a collection of tokensets that typically represent a single project, product, or design system. Think of it as a folder that groups all your design tokens together.Example Structure
Creating a Workspace
You can create workspaces via the UI or API:Workspace Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier |
name | string | Workspace name |
description | string | Optional description |
user_id | string | Owner’s user ID |
created_at | timestamp | Creation date |
updated_at | timestamp | Last update date |
Best Practices
1. Organize by Project
Create separate workspaces for different projects or products:- ✅ “Mobile App” workspace
- ✅ “Web Dashboard” workspace
- ✅ “Marketing Site” workspace
2. Use Descriptive Names
Make workspace names clear and descriptive:- ✅ “E-commerce Platform - Design System”
- ❌ “DS1”
3. Add Descriptions
Include helpful descriptions:4. One System Per Workspace
Keep related tokens together:- ✅ All mobile app tokens in one workspace
- ❌ Mixing unrelated projects
Managing Workspaces
Listing Workspaces
Getting a Workspace
Updating a Workspace
Deleting a Workspace
Next Steps
Tokensets
Learn about tokensets within workspaces
API Reference
Explore workspace API endpoints