Workspaces
Create and manage knowledge base workspaces.
List Workspaces
GET /v1/kb/workspacesReturns all workspaces owned by the current user.
Scope: kb:read
Create Workspace
POST /v1/kb/workspacesScope: kb:write
{
"name": "Q4 Reports"
}Get Workspace
GET /v1/kb/workspaces/{id}Scope: kb:read
Update Workspace
PATCH /v1/kb/workspaces/{id}Scope: kb:write
{
"name": "Updated Name"
}Get Workspace Stats
GET /v1/kb/workspaces/{id}/statsReturns document count, total size, and processing status.
Scope: kb:read
Scan Workspace
GET /v1/kb/workspaces/{id}/scanReturns a detailed scan of the workspace index, including chunk counts and embedding status.
Scope: kb:read
Delete Workspace
DELETE /v1/kb/workspaces/{id}Permanently deletes the workspace and all its documents. This action cannot be undone.
Scope: kb:write