Current Workspace Endpoints
| Action | Endpoint |
|---|---|
| List my workspaces | GET /workspaces |
| Create workspace | POST /workspaces |
| Get workspace | GET /workspaces/{id} |
| Update workspace | PUT /workspaces/{id} |
| Delete workspace | DELETE /workspaces/{id} |
| Join by code | POST /workspaces/join |
| Invite member | POST /workspaces/{id}/members |
| Remove member | DELETE /workspaces/{id}/members/{userId} |
| Update TOTP policy | PUT /workspaces/{id}/totp-policy |
Practical Notes
- Most workload-creation endpoints require
workspaceId. - Membership-protected resources use workspace guards in the API server.
- Billing, secrets, rate limits, and OAuth connections are all nested under a workspace.
- Workspace billing APIs live under
/workspaces/{workspaceId}/billing/*; the old/workspaces/{id}/balance*routes are gone.