Forks

A fork is a new space made from another space (or one folder of it) without copying bytes: it shares the original's files, data key and bucket. Work in it like any space, list what changed, and apply changes back. Making or applying a fork needs files:write.

5 endpoints · Overview

GET/v1/spaces/{sid}/forks

The forks of a space (any member of it)
Bearer token

Parameters · path

  • sidstringrequired

Responses

  • 200
    Forks
    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/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/forks" \
  -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/spaces/{sid}/forks

Fork the space (editor and up); the fork is a further drive of the same space, with its members and plan
Bearer token

Copies every live file and folder (or those under path) as rows that point at the same content; head versions only, with their sidecars and renditions. A token for the space reaches the fork as it is; a token with drive_ids gets the fork added to them. A manager of the space, or whoever made the fork, may rename or delete it. With copy, the fork then copies the bytes its files use into its own storage (storage_id, or the original's) in the background and stops depending on the original; fork.copy shows how far it is.

Parameters · path

  • sidstringrequired

Request bodyForkRequest application/json

  • namestringrequired
  • pathstring
    Only this folder of the space (default all of it)
  • copyboolean
    Take an own copy of the files in the background, so the fork stops depending on the original. It is usable at once and shares the files until the copy is done (see fork.copy)
    default false
  • storage_idstring
    With copy: where the fork keeps its files, a storage profile id or "server" for the server's own storage. Omitted: the original's storage

Responses

Example request
curl -X POST "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/forks" \
  -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"
}

POST/v1/spaces/{sid}/fork/copy/retry

Try a failed copy again (a manager of the space, or whoever made the fork)
Bearer token

Parameters · path

  • sidstringrequired
    The fork

Responses

  • 204
    Copying again
  • 4xx/5xx
    Error
    Error
Example request
curl -X POST "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/fork/copy/retry" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"

GET/v1/spaces/{sid}/fork/changes

How a fork differs from the space it came from
Bearer token

Parameters · path

  • sidstringrequired
    The fork

Responses

  • 200
    Changes in path order
    object
    › Show fields
    • itemsForkChange[]required
      › 9 fields
      • kindstringrequired
        addedmodifiedmetadatamoveddeleted
      • node_kindstringrequired
        filedir
      • pathstringrequired
        In the fork ("" for a deleted node)
      • node_idstringrequired
        In the fork
      • origin_pathstring
        Where it is (or goes) in the original
      • origin_node_idstring
      • sidecarsstring[]
        Namespaces whose documents differ
      • conflictboolean
        The original changed it too since the fork: apply needs force
      • whystring
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/fork/changes" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "kind": "added",
      "node_kind": "file",
      "path": "Ep01/Shots/A001_C003.mov",
      "node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "origin_path": "origin_path",
      "origin_node_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "sidecars": [],
      "conflict": false,
      "why": "why"
    }
  ]
}

POST/v1/spaces/{sid}/fork/apply

Bring a fork's changes back (editor and up)
Bearer token

Deletes, then moves, then new folders and files, then edited files and metadata, each on its own. A conflict (the original changed the file since the fork) is skipped unless force, which replaces it; its author is notified as for any save.

Parameters · path

  • sidstringrequired
    The fork

Request bodyApplyForkRequest application/json

  • pathsstring[]
    Only changes at or under these paths (fork or original paths)
  • forceboolean
    Also replace the original's newer versions
  • dry_runboolean

Responses

  • 200
    What happened to each change
    object
    › Show fields
    • itemsForkApplied[]required
      › 11 fields
      • kindstringrequired
        addedmodifiedmetadatamoveddeleted
      • node_kindstringrequired
        filedir
      • pathstringrequired
        In the fork ("" for a deleted node)
      • node_idstringrequired
        In the fork
      • origin_pathstring
        Where it is (or goes) in the original
      • origin_node_idstring
      • sidecarsstring[]
        Namespaces whose documents differ
      • conflictboolean
        The original changed it too since the fork: apply needs force
      • whystring
      • resultstringrequired
        appliedskippedwould applyfailed
      • errorstring
  • 4xx/5xx
    Error
    Error
Example request
curl -X POST "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/fork/apply" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"paths":["Ep01/Shots/A001_C003.mov"],"force":false,"dry_run":false}'
Example response · 200
{
  "items": [
    {
      "result": "applied",
      "error": "error"
    }
  ]
}