Leave workspace
POST/api/v1/workspaces/:workspaceId/leave
Authentication: requires a logged-in workspace-member session. API keys (workspace or the instance master key) are NOT accepted for this operation.
Removes the calling user from the workspace. Session-only — API keys are not accepted. The last owner cannot leave.
Request
Responses
- 200
- 400
- 401
- 403
- 409
Leave workspace
Validation error
Missing or invalid credentials
Insufficient permissions
The caller is the last owner of the workspace (LAST_OWNER).