Start my own workspace
const url = 'http://localhost:8000/api/me/workspace/';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/me/workspace/ \ --header 'Authorization: Bearer <token>'For an account with no team — a client of an academy who is also a coach, or someone who landed on a client invite by mistake: makes the Personal team a coach gets at signup, with its Free plan, and makes it active. 201 when it made one, 200 with the existing team when the account already has one. 404 on deployments without self-signup (local auth).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”POST /api/me/workspace/ — the account’s own team.
object
True when this call made the team; false when the account already had one.
Examples
Already had one
{ "team_id": "c0ffee00-0000-4000-8000-000000000001", "created": false}POST /api/me/workspace/ — the account’s own team.
object
True when this call made the team; false when the account already had one.
Examples
A new workspace
{ "team_id": "c0ffee00-0000-4000-8000-000000000001", "created": true}object
Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).
Example generated
{ "detail": "example"}object
Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).
Example generated
{ "detail": "example"}object
Human-readable message, or a stable machine code for the cases a client branches on. The standard envelope for 400 (validation — a field-keyed object may appear instead), 401 (missing / invalid credentials), 403 (authenticated but not permitted), and 404 (absent — cross-team records are collapsed to 404 so the API never leaks the existence of another team’s data).
Example generated
{ "detail": "example"}