REST API — Workspaces
Esta página aún no está disponible en tu idioma.
| Method | Path | What it does |
|---|---|---|
GET |
/api/accounts |
The caller’s workspaces in this org (operators: all). |
POST |
/api/accounts |
Create a new workspace. |
POST |
/api/accounts/join |
Join an existing workspace via invite code (scoped to the request’s org). |
GET |
/api/accounts/me |
Return the current user’s workspace. |
POST |
/api/accounts/onboarding |
Create a new workspace and link the current user as owner (onboarding). |
GET |
/api/accounts/onboarding-status |
Return the user’s current onboarding progress. |
GET |
/api/accounts/slug/{slug} |
Get workspace details by slug — members only. |
POST |
/api/accounts/upgrade-to-company |
Upgrade an individual workspace to a company workspace. |
DELETE |
/api/accounts/{account_id} |
Delete a workspace — its OWNER only. |
GET |
/api/accounts/{account_id} |
Get workspace details by ID — members only. |
PATCH |
/api/accounts/{account_id} |
Update a workspace’s own fields — members only. |
POST |
/api/accounts/{account_id}/create_user |
Create a user linked to the workspace — members only. |
GET |
/api/accounts/{account_id}/members |
List a workspace’s members. Any member may view; non-members get 403. |
DELETE |
/api/accounts/{account_id}/members/{member_user_id} |
Remove a member (owner removes non-owners; a member may remove themselves). |