Workspace switcher list
Every workspace the caller belongs to (personal workspace self-healed first), each with member_count, is_default, and the caller's teams in that workspace. No tools field here — tool access is per active workspace and arrives with the session.
View as MarkdownAuthorization
bearer In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/me/workspaces"{ "workspaces": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "kind": "string", "avatar_url": "string", "role": "string", "permissions": [ "string" ], "member_count": 0, "is_default": true, "teams": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "my_role": "string" } ] } ]}Revoke a user API key
Full sessions only.
Create a team workspace
Any authenticated user. Slug auto-derived; caller becomes owner and the new workspace becomes their default. Returns 200 with a new workspace-scoped access token (workspace payload without tools here). A "General" team is created with the workspace and the caller becomes its lead. Everyone who joins later is enrolled in it automatically, so no member is ever left with an empty teams[] claim.