Workspaces
Workspaces provide multi-tenant isolation. Each workspace has its own projects, API keys, and rate limits.
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /workspaces | Create a workspace |
GET | /workspaces | List your workspaces |
DELETE | /workspaces | Delete a workspace |
POST | /workspaces/members/invite | Invite a member |
POST | /workspaces/invitations/:token/accept | Accept an invitation |
PATCH | /workspaces/members/:userId/role | Update member role |
DELETE | /workspaces/members/:userId | Remove a member |
POST | /workspaces/transfer | Transfer ownership |
Authentication
All workspace endpoints require JWT authentication. Most mutating operations require admin or owner role.
Roles
| Role | Permissions |
|---|---|
member | View projects and logs |
admin | Manage projects, keys, and members |
owner | Full control including workspace deletion and ownership transfer |
Headers
All workspace-scoped requests (except list/create) require the X-Workspace-Slug header:
X-Workspace-Slug: my-workspace