Create Workspace
Workspaces
Create Workspace
Create a new workspace
POST
Create Workspace
Documentation Index
Fetch the complete documentation index at: https://docs.tokencraft.dev/llms.txt
Use this file to discover all available pages before exploring further.
Create Workspace
Creates a new workspace for the authenticated user.Write access policy - This endpoint requires the
write:tokens scope and API write access on the token owner account.
Workspace creation is blocked when the owner is at/above their workspace plan limit (existing workspaces stay accessible).Endpoint
Authentication
Requires a valid API token in the Authorization header.Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer token | Yes |
Content-Type | application/json | Yes |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Workspace name (max 255 characters) |
description | string | No | Optional description |
Request Body
Response
Success Response
Status:201 Created
Examples
Error Responses
400 Bad Request
- Missing or empty
namefield nameexceeds 255 characters- Invalid field types
401 Unauthorized
403 Forbidden
- Owner plan does not include API write access
- Owner reached workspace creation limit on current plan
500 Internal Server Error
Validation Rules
- name: Required, non-empty string, max 255 characters
- description: Optional string
Next Steps
Update Workspace
Update workspace details
Create Tokenset
Add tokensets to your workspace