Create Tokenset
Tokensets
Create Tokenset
Create a new tokenset in a workspace
POST
Create Tokenset
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 Tokenset
Creates a new tokenset within a workspace.Write access policy - This endpoint requires the
write:tokens scope.- TEAM-owned workspace:
owner,admin,editorcan write;vieweris 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
Authentication
Requires a valid API token in the Authorization header.Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer token | Yes |
Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Workspace ID |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Tokenset name (max 255 characters) |
description | string | No | Optional description |
Request Body
Response
Success Response
Status:201 Created
Examples
Error Responses
400 Bad Request
404 Not Found
- Workspace ID doesn’t exist
- You do not have access to this workspace
Use Cases
1. Create Multiple Tokensets
2. Create with Default Mode
After creating a tokenset, you may want to create modes:Next Steps
Update Tokenset
Update tokenset details
Create Mode
Add modes to your tokenset