workspaces
List My Workspaces
Return every workspace the current user can access.
Unions two sets:
- workspaces where the user has a workspace_members row (role comes from that row)
- workspaces where workspaces.managed_by_user_id matches the user but they have no membership (role = 'manager')
A user who is both a member AND the external manager is reported with their concrete membership role (not the virtual manager one) since their explicit role is the more specific signal.
get/api/workspaces
Response
Successful Response