Workspaces

Workspaces (ADR 0049): the organization, and the unit of people, plan and storage. The server makes each person's default workspace and drive at first sign-in; only that one gets the trial. A new workspace starts on the free plan, which on a server that takes payments is locked (402 plan_required) until it pays. docs/design/workspace-api.md describes the move from the older calls.

13 endpoints · Overview

GET/v1/workspaces

Your workspaces, the default one first
Bearer token

Responses

  • 200
    Workspaces
    object
    › Show fields
    • itemsWorkspace[]required
      › 12 fields
      • idstringrequired
        The form of a drive's id (spc_…) but no drive's for a new one; a workspace from before ADR 0049 keeps its first drive's id (an organization with no spaces, its org_… id)
      • namestringrequired
      • descriptionstringrequired
      • roleWorkspaceRolerequired
        viewercommentereditoradminowner
      • is_defaultbooleanrequired
        The one the server made for its creator at first sign-in
      • created_bystringrequired
      • storage_idstringrequired
        Its backend (stp_server: the server's built-in storage); every drive is made there
      • storage_namestringrequired
      • drivesintegerrequired
      • membersintegerrequired
      • created_atTimestamprequired
      • lockedstring
        On the free plan of a server that takes payments
        plan_required
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/workspaces" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "id": "id",
      "name": "A001_C003.mov",
      "description": "description",
      "role": "viewer",
      "is_default": false,
      "created_by": "created_by",
      "storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "storage_name": "storage_name",
      "drives": 1,
      "members": 1,
      "created_at": "2026-11-14T09:30:00Z",
      "locked": "plan_required"
    }
  ]
}

POST/v1/workspaces

Make a workspace with you as its owner, on the free plan and the server's default storage (people only)
Bearer token

Request body application/json

  • namestringrequired
  • descriptionstring
  • storage_idstring
    A bucket of yours (refused while the server takes payments: a new workspace is on the free plan)

Responses

Example request
curl -X POST "https://side.space/v1/workspaces" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"A001_C003.mov"}'
Example response · 201
{
  "id": "id",
  "name": "A001_C003.mov",
  "description": "description",
  "role": "viewer",
  "is_default": false,
  "created_by": "created_by",
  "storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "storage_name": "storage_name",
  "drives": 1,
  "members": 1,
  "created_at": "2026-11-14T09:30:00Z",
  "locked": "plan_required"
}

GET/v1/workspaces/{wid}

A workspace (also while locked)
Bearer token

Parameters · path

  • widstringrequired

Responses

Example request
curl "https://side.space/v1/workspaces/wid" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "id": "id",
  "name": "A001_C003.mov",
  "description": "description",
  "role": "viewer",
  "is_default": false,
  "created_by": "created_by",
  "storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "storage_name": "storage_name",
  "drives": 1,
  "members": 1,
  "created_at": "2026-11-14T09:30:00Z",
  "locked": "plan_required"
}

PATCH/v1/workspaces/{wid}

Rename or describe it (an admin; also while locked)
Bearer token

Parameters · path

  • widstringrequired

Request body application/json

  • namestring
  • descriptionstring

Responses

Example request
curl -X PATCH "https://side.space/v1/workspaces/wid" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"A001_C003.mov","description":"description"}'
Example response · 200
{
  "id": "id",
  "name": "A001_C003.mov",
  "description": "description",
  "role": "viewer",
  "is_default": false,
  "created_by": "created_by",
  "storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "storage_name": "storage_name",
  "drives": 1,
  "members": 1,
  "created_at": "2026-11-14T09:30:00Z",
  "locked": "plan_required"
}

GET/v1/workspaces/{wid}/drives

Its drives you reach
Bearer token

Parameters · path

  • widstringrequired

Responses

  • 200
    Drives
    object
    › Show fields
    • itemsSpace[]required
      › 13 fields
      • idstringrequired
      • namestringrequired
      • roleRolerequired
        viewercommentereditormanager
      • owner_idstringrequired
      • root_node_idstringrequired
      • journal_seqintegerrequired
      • created_atTimestamprequired
      • storage_idstring
        The storage profile its files are in; absent for the server's own storage
      • forkobject
        Set when the space is a fork
        › 4 fields
        • from_space_idstringrequired
        • pathstringrequired
          The folder of the original it copies ("/" for all of it)
        • at_seqintegerrequired
          The original's journal position when it was forked
        • copyobject
          Set for a fork made with copy: while copying it still shares the original's files; once done it keeps its own
          › 4 fields
          • statestringrequired
            copyingdonefailed
          • copiedintegerrequired
            Chunks copied so far
          • copied_bytesintegerrequired
          • errorstring
            Why it failed; POST …/fork/copy/retry tries again
      • workspace_idstringrequired
        The workspace this drive belongs to (ADR 0049): its members, roles, plan and storage. Opaque; a fork has its original's
      • workspace_namestring
      • workspace_roleWorkspaceRole
        viewercommentereditoradminowner
      • lockedstring
        Set when the workspace is on the free plan of a server that takes payments: everything in the drive answers 402 until it pays
        plan_required
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/workspaces/wid/drives" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "id": "id",
      "name": "A001_C003.mov",
      "role": "viewer",
      "owner_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "root_node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "journal_seq": 1,
      "created_at": "2026-11-14T09:30:00Z",
      "storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "fork": {},
      "workspace_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "workspace_name": "workspace_name",
      "workspace_role": "viewer",
      "locked": "plan_required"
    }
  ]
}

POST/v1/workspaces/{wid}/drives

Make a drive (an admin), on the workspace's storage
Bearer token

Parameters · path

  • widstringrequired

Request body application/json

  • namestringrequired

Responses

Example request
curl -X POST "https://side.space/v1/workspaces/wid/drives" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"A001_C003.mov"}'
Example response · 201
{
  "id": "id",
  "name": "A001_C003.mov",
  "role": "viewer",
  "owner_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "root_node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "journal_seq": 1,
  "created_at": "2026-11-14T09:30:00Z",
  "storage_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "fork": {
    "from_space_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
    "path": "Ep01/Shots/A001_C003.mov",
    "at_seq": 1,
    "copy": {
      "state": "copying",
      "copied": 1,
      "copied_bytes": 1,
      "error": "error"
    }
  },
  "workspace_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "workspace_name": "workspace_name",
  "workspace_role": "viewer",
  "locked": "plan_required"
}

GET/v1/workspaces/{wid}/members

Bearer token

Parameters · path

  • widstringrequired

Responses

  • 200
    People
    object
    › Show fields
    • itemsMember[]required
      › 4 fields
      • userUserrequired
        › 4 fields
        • idstringrequired
        • emailstringrequired
          Agents have an address at agents.invalid: it finds them for invites, no mail goes there
        • display_namestringrequired
        • kindstringrequired
          humanagent
      • workspace_roleWorkspaceRole
        viewercommentereditoradminowner
      • rolestringrequired
        Their role (a WorkspaceRole under /v1/workspaces, a Role under /v1/spaces)
      • direct_roleRole | any
        The same as role. Before ADR 0052 null for someone there only through a team
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/workspaces/wid/members" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "user": {},
      "workspace_role": "viewer",
      "role": "role",
      "direct_role": "viewer"
    }
  ]
}

POST/v1/workspaces/{wid}/members

Invite by email (an admin; only an owner adds owners). The plan's member limit applies; Individual is one person (402 quota_exceeded).
Bearer token

Parameters · path

  • widstringrequired

Request body application/json

  • emailstringrequired
  • viewercommentereditoradminowner

Responses

Example request
curl -X POST "https://side.space/v1/workspaces/wid/members" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"email":"mei@studio.example"}'
Example response · 201
{
  "user": {
    "id": "id",
    "email": "mei@studio.example",
    "display_name": "display_name",
    "kind": "human"
  },
  "workspace_role": "viewer",
  "role": "role",
  "direct_role": "viewer"
}

PATCH/v1/workspaces/{wid}/members/{uid}

Change someone's own role (an admin; owners by an owner). A workspace keeps an owner.
Bearer token

Parameters · path

  • widstringrequired
  • uidstringrequired
    "me" for yourself

Request body application/json

Responses

Example request
curl -X PATCH "https://side.space/v1/workspaces/wid/members/usr_01JD7Q1Z3X5V7T9R1P3N5L7J9H" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role":"viewer"}'
Example response · 200
{
  "user": {
    "id": "id",
    "email": "mei@studio.example",
    "display_name": "display_name",
    "kind": "human"
  },
  "workspace_role": "viewer",
  "role": "role",
  "direct_role": "viewer"
}

DELETE/v1/workspaces/{wid}/members/{uid}

Remove someone (an admin; an owner for an owner), or leave (me).
Bearer token

Parameters · path

  • widstringrequired
  • uidstringrequired
    "me" for yourself

Responses

Example request
curl -X DELETE "https://side.space/v1/workspaces/wid/members/usr_01JD7Q1Z3X5V7T9R1P3N5L7J9H" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"

GET/v1/workspaces/{wid}/events

Its audit log, newest first (an admin)
Bearer token

Parameters · path

  • widstringrequired

Parameters · query

  • beforeinteger
  • limitinteger

Responses

  • 200
    Events
    object
    › Show fields
    • itemsWorkspaceEvent[]required
      › 6 fields
      • idintegerrequired
      • actor_idstring | null
        required
      • kindstringrequired
      • targetstring | null
        required
      • detailobjectrequired
      • atTimestamprequired
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/workspaces/wid/events" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "id": 1,
      "actor_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "kind": "kind",
      "target": "target",
      "detail": {},
      "at": "2026-11-14T09:30:00Z"
    }
  ]
}

GET/v1/workspaces/{wid}/retention

How long versions and the trash are kept (an admin)
Bearer token

Parameters · path

  • widstringrequired

Responses

Example request
curl "https://side.space/v1/workspaces/wid/retention" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "versions": "all",
  "keep_days": 1,
  "keep_last": 1,
  "trash_days": 30
}

PUT/v1/workspaces/{wid}/retention

Change how long versions and the trash are kept (an owner)
Bearer token

A background job deletes versions the rule lets go, for good, and records versions.pruned in the audit log. A file's current version and labeled versions are always kept.

Parameters · path

  • widstringrequired

Request bodyRetention application/json

  • versionsstringrequired
    all: keep every version; days: keep versions saved in the last keep_days days; count: keep each file's newest keep_last
    alldayscount
  • keep_daysinteger
    ≥ 1 · ≤ 36500
  • keep_lastinteger
    ≥ 1 · ≤ 36500
  • trash_daysinteger
    Days deleted files stay restorable
    default 30 · ≥ 1 · ≤ 3650

Responses

Example request
curl -X PUT "https://side.space/v1/workspaces/wid/retention" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"versions":"all"}'
Example response · 200
{
  "versions": "all",
  "keep_days": 1,
  "keep_last": 1,
  "trash_days": 30
}