Workspace Session API
These endpoints are under/api (session cookie auth), not /api/v1 (API token auth).
Use these routes from authenticated dashboard clients with
credentials: "include".Create Workspace (Session)
Request Body
Notes
include_in_organizationis optional (defaultfalse).- If
include_in_organization=true, caller must have Organizations feature access and at least one organization. - Owner membership is created automatically.
List Workspace Members
Response (200)
invitations is kept as an empty array for backward compatibility.
Add/Update Member Immediately
Request Body
Behavior
- Requires workspace permission to manage members.
- Email must match an existing profile account.
- If user is already a member, role is updated.
- Plan limits are enforced on add.
Responses
201member added200role updated404user email not found403permission or plan limit blocked
Deprecated Invitation Link Endpoints
Legacy invitation-link endpoints are deprecated and return410 Gone:
POST /api/workspaces/invitations/acceptGET /api/workspaces/invitations/verifyDELETE /api/workspaces/invitations/{id}