List User Workspaces
Retrieve all workspaces associated with the authenticated user. If the user does not exist, a new user and default workspace may be automatically created.
GET
Description
This endpoint returns a list of workspaces where the authenticated user is either:
- The owner of the workspace,
- An internal team member, or
- An external team member.
If the user is signing in for the first time, the system will:
- Check for any pending invitations and join the user to an existing workspace if one exists.
- If no invitation exists, create a default workspace for the user.
The response includes both direct workspaces and external workspaces, sorted in the following order:
- Owned workspaces,
- Team memberships,
- Guest workspaces.
Response Fields
_idstringUnique identifier of the workspace.
namestringName of the workspace.
initialsstringInitials of the workspace.
teamMembersarrayList of team members associated with the workspace, including their roles and optional external workspace details.
createdAtstringTimestamp when the workspace was created (ISO 8601 format).
updatedAtstringTimestamp when the workspace was last updated (ISO 8601 format).
