v34

latestOpenAPI 3.1.0raw.githubusercontent.com2026-01-2166128239.1 KB
user

Get Current User Workspaces

Retrieve the list of workspaces associated with the current authenticated user. Includes wrapped_key, stats (conversation/document counts with shared/private breakdown), and users for each workspace. All data is fetched efficiently using batch queries to avoid N+1 problems. Leverages RLS to enforce access control.

get/api/user/workspaces

Response

Successful Response

external_idstring required
namestring required
descriptionstring nullable required
is_publicboolean required
created_by_ext_idstring required
updated_by_ext_idstring nullable
created_atstring date-time required
updated_atstring date-time required
wrapped_keystring nullable
shared_conversation_countinteger
private_conversation_countinteger
shared_document_countinteger
private_document_countinteger
user_files_mbnumber