Workspaces
Workspace CRUD, members, settings, and switch — browser mutations need step-up.
Workspaces partition projects, agents, and billing within an org.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v1/workspaces | List workspaces. |
POST | /api/v1/workspaces | Create — browser session + step-up. |
GET | /api/v1/workspaces/:id | Fetch one workspace. |
PATCH | /api/v1/workspaces/:id | Update — browser + step-up. |
DELETE | /api/v1/workspaces/:id | Delete — 409 if non-empty; 400 if default workspace. |
GET | /api/v1/workspaces/:id/members | List members. |
POST | /api/v1/workspaces/:id/members | Add member — browser + step-up. |
DELETE | /api/v1/workspaces/:id/members | Remove member. |
POST | /api/v1/workspaces/switch | Set active workspace for the session. |
API keys may read workspaces but cannot create, delete, or change membership.