List Workspaces
Workspaces
List Workspaces
Retrieve all workspaces for the authenticated user
GET
List Workspaces
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.
List Workspaces
Retrieves all workspaces visible to the authenticated token user. For TEAM-owned workspaces, this includes owned + shared workspaces where the caller is a member. For non-TEAM-owned workspaces, visibility remains owner-only.Endpoint
Authentication
Requires a valid API token in the Authorization header.Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer token | Yes |
Parameters
NoneResponse
Success Response
Status:200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
workspaces | array | Array of workspace objects |
total | number | Total number of workspaces |
Workspace Object
| Field | Type | Description |
|---|---|---|
id | string | Unique workspace identifier |
name | string | Workspace name |
description | string|null | Optional description |
user_id | string | Owner’s user ID |
user_role | "owner"|"admin"|"editor"|"viewer" | Caller role in this workspace |
is_owner | boolean | true when caller role is owner |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
Examples
Error Responses
401 Unauthorized
500 Internal Server Error
Use Cases
1. Initial App Load
Fetch all workspaces when user opens your application:2. Workspace Selector
Build a dropdown menu:3. Check for Workspaces
Verify user has created workspaces:Rate Limiting
This endpoint counts toward your rate limit of 100 requests per minute. See Rate Limits for details.Next Steps
Get Workspace
Get details of a specific workspace
Get Tokensets
List tokensets in a workspace