Sidecars

14 endpoints · Overview

GET/v1/spaces/{sid}/namespaces

Sidecar namespaces that one member alone writes in this space
Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$

Responses

  • 200
    Owned namespaces
    object
    › Show fields
    • itemsNamespaceOwner[]required
      › 3 fields
      • namespacestringrequired
      • ownerUserrequired
        › 4 fields
        • idstringrequired
        • emailstringrequired
          Agents have an address at agents.invalid: it finds them for invites, no mail goes there
        • display_namestringrequired
        • kindstringrequired
          humanagent
      • created_atTimestamprequired
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/namespaces" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "namespace": "x-acme.qc",
      "owner": {},
      "created_at": "2026-11-14T09:30:00Z"
    }
  ]
}

PUT/v1/spaces/{sid}/namespaces/{ns}

Let only this member write the namespace here (manager). ai.generation or a custom x-… namespace.
Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Request body application/json

  • owner_idstringrequired

Responses

Example request
curl -X PUT "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/namespaces/x-acme.qc" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"owner_id":"nod_01JD7Q3A5C7E9G1J3K5M7P9R2S"}'
Example response · 200
{
  "namespace": "x-acme.qc",
  "owner": {
    "id": "id",
    "email": "mei@studio.example",
    "display_name": "display_name",
    "kind": "human"
  },
  "created_at": "2026-11-14T09:30:00Z"
}

DELETE/v1/spaces/{sid}/namespaces/{ns}

Let every editor write the namespace again (manager)
Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Responses

  • 204
    Released
  • 4xx/5xx
    Error
    Error
Example request
curl -X DELETE "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/namespaces/x-acme.qc" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"

GET/v1/spaces/{sid}/versions/{vid}/sidecars

Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$

Responses

  • 200
    Sidecars
    object
    › Show fields
    • itemsSidecar[]
      › 8 fields
      • namespacestringrequired
      • docobjectrequired
      • schema_versionintegerrequired
      • producerobject | nullrequired
        Who wrote it, e.g. {"name":"cliptap","version":"1.2","inherited_from":"ver_..."}; a person's edit of a transcript adds edited_by and edited_at
        required
      • updated_atTimestamprequired
      • revintegerrequired
        Raised by every write; send it back to refuse overwriting someone (ADR 0060)
      • revision_idstring
        The current revision (namespaces that keep them: transcript)
      • newer_revision_idstring
        A run's result newer than a person's current revision, waiting to be picked (PUT …/current)
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "namespace": "x-acme.qc",
      "doc": {},
      "schema_version": 1,
      "producer": {},
      "updated_at": "2026-11-14T09:30:00Z",
      "rev": 1,
      "revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
      "newer_revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S"
    }
  ]
}

GET/v1/spaces/{sid}/versions/{vid}/sidecars/{ns}

Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Responses

Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "namespace": "x-acme.qc",
  "doc": {},
  "schema_version": 1,
  "producer": {},
  "updated_at": "2026-11-14T09:30:00Z",
  "rev": 1,
  "revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "newer_revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S"
}

PUT/v1/spaces/{sid}/versions/{vid}/sidecars/{ns}

Write a whole sidecar (editor)
Bearer token

Built-in namespaces are validated against proto/sidecar/.json. A namespace the server has no schema for (a plugin's x-…, or an ai.… one newer than the server) is taken when it uses the standard shapes (library-and-search.md 3.2: text fields are strings, segments/chapters/highlights are lists of items with at or start seconds, everything else a flat value), and indexed like a built-in one; otherwise 400 says which rule failed (ADR 0060). core and media are server-written.

With rev (or If-Match: "<rev>"), the write is refused with 409 stale_rev (details.rev is the current one) when the sidecar changed since that rev was read; 0 means "there was none". Without it, the last write wins. In fields, a run's write keeps the values people set. In a namespace that keeps revisions (transcript), every write adds one; a run's never replaces a person's current revision.

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Parameters · header

  • If-Matchstring
    The rev read, e.g. "3" (instead of rev in the body)

Request bodyPutSidecarRequest application/json

  • docobjectrequired
  • schema_versioninteger
    default 1
  • producerobject
  • revinteger
    The rev read (0: none yet); a stale one is refused with 409 stale_rev

Responses

  • 200
    Sidecar
    Sidecar
  • 409
    stale_rev: someone wrote since (details.rev)
    Error
  • 4xx/5xx
    Error
    Error
Example request
curl -X PUT "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"doc":{}}'
Example response · 200
{
  "namespace": "x-acme.qc",
  "doc": {},
  "schema_version": 1,
  "producer": {},
  "updated_at": "2026-11-14T09:30:00Z",
  "rev": 1,
  "revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "newer_revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S"
}

PATCH/v1/spaces/{sid}/versions/{vid}/sidecars/{ns}

Change fields of a sidecar (editor)
Bearer token

Applies ops to the current document under a lock on it, then checks the result like a PUT. set and unset change a field (path: keys joined by dots, e.g. rating, client.value); add and remove add a value to a set (a list of strings, numbers or booleans: tags, hidden_tags) or take it out. Two people adding tags at once both land. A sidecar that does not exist starts empty. rev / If-Match work as for PUT. In fields, a person's values are stamped by: user with at and user_id, and a run's do not replace them.

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Parameters · header

  • If-Matchstring

Request bodyPatchSidecarRequest application/json

  • opsobject[]required
    ≤ 200 items
    › 3 fields
    • opstringrequired
      setunsetaddremove
    • pathstringrequired
      Keys joined by dots (one to four): tags, rating, client.value
    • valueany
      For set: any JSON; for add and remove: a string, number or boolean
  • revinteger
  • schema_versioninteger
  • producerobject

Responses

  • 200
    Sidecar
    Sidecar
  • 409
    stale_rev: someone wrote since (details.rev)
    Error
  • 4xx/5xx
    Error
    Error
Example request
curl -X PATCH "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ops":[{"op":"set","path":"Ep01/Shots/A001_C003.mov"}]}'
Example response · 200
{
  "namespace": "x-acme.qc",
  "doc": {},
  "schema_version": 1,
  "producer": {},
  "updated_at": "2026-11-14T09:30:00Z",
  "rev": 1,
  "revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "newer_revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S"
}

DELETE/v1/spaces/{sid}/versions/{vid}/sidecars/{ns}

Remove a sidecar, with its revisions (editor)
Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Responses

  • 204
    Deleted
  • 4xx/5xx
    Error
    Error
Example request
curl -X DELETE "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"

GET/v1/spaces/{sid}/versions/{vid}/sidecars/{ns}/revisions

The revisions of a sidecar people correct (transcript), newest first (ADR 0060)
Bearer token

Each is by ai (a run's result) or user (a person's or an agent's edit, based_on the one it changed); one is current, and the sidecar's doc is it. A sidecar written before revisions shows one, with an empty id, until it is next written.

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Responses

  • 200
    Revisions
    object
    › Show fields
    • itemsSidecarRevision[]
      › 10 fields
      • idstringrequired
      • nintegerrequired
        1, 2, … per version and namespace
      • bystringrequired
        aiuser
      • based_onstring | nullrequired
        The revision a person's edit changed
        required
      • currentbooleanrequired
      • created_byUser | anyrequired
        Who wrote it; for a run, who started it
      • created_atTimestamprequired
      • schema_versionintegerrequired
      • producerobject | nullrequired
        required
      • docobject
        Only when one revision is read
  • 400
    The namespace keeps no revisions
    Error
  • 4xx/5xx
    Error
    Error
Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc/revisions" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "items": [
    {
      "id": "id",
      "n": 1,
      "by": "ai",
      "based_on": "based_on",
      "current": false,
      "created_by": {},
      "created_at": "2026-11-14T09:30:00Z",
      "schema_version": 1,
      "producer": {},
      "doc": {}
    }
  ]
}

GET/v1/spaces/{sid}/versions/{vid}/sidecars/{ns}/revisions/{rid}

One revision, with its document
Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired
  • ridstringrequired

Responses

Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc/revisions/rid" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "id": "id",
  "n": 1,
  "by": "ai",
  "based_on": "based_on",
  "current": false,
  "created_by": {
    "id": "id",
    "email": "mei@studio.example",
    "display_name": "display_name",
    "kind": "human"
  },
  "created_at": "2026-11-14T09:30:00Z",
  "schema_version": 1,
  "producer": {},
  "doc": {}
}

PUT/v1/spaces/{sid}/versions/{vid}/sidecars/{ns}/current

Make a revision the current one (editor), e.g. take the new AI transcript over a person's; the index follows
Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • nsstringrequired

Parameters · header

  • If-Matchstring

Request body application/json

  • revision_idstringrequired
  • revinteger
    The sidecar rev read; 409 stale_rev when it changed

Responses

Example request
curl -X PUT "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc/current" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"revision_id":"nod_01JD7Q3A5C7E9G1J3K5M7P9R2S"}'
Example response · 200
{
  "namespace": "x-acme.qc",
  "doc": {},
  "schema_version": 1,
  "producer": {},
  "updated_at": "2026-11-14T09:30:00Z",
  "rev": 1,
  "revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S",
  "newer_revision_id": "nod_01JD7Q3A5C7E9G1J3K5M7P9R2S"
}

GET/v1/spaces/{sid}/versions/{vid}/media

Where the server is with a version's previews (proxy, poster, filmstrip, waveform), with time left
Bearer token

Poll this while a video is being transcoded to show "preview being made" instead of failing to play an original the viewer cannot decode. Renditions lists what can be fetched now (proxy_start plays the opening seconds before the whole proxy is ready).

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$

Responses

Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/media" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "state": "none",
  "stage": "start",
  "progress": 0.5,
  "eta_s": 1,
  "ahead": 1,
  "renditions": [
    "rendition"
  ],
  "media": {}
}

GET/v1/spaces/{sid}/versions/{vid}/renditions/{kind}

Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • kindstringrequired

Responses

Example request
curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/renditions/kind" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN"
Example response · 200
{
  "kind": "kind",
  "mime": "video/quicktime",
  "manifest_hash": "manifest_hash",
  "size": 734003200
}

PUT/v1/spaces/{sid}/versions/{vid}/renditions/{kind}

Attach a derived file (chunks uploaded through an upload session first)
Bearer token

Parameters · path

  • sidstringrequired
    ^spc_[0-9A-HJKMNP-TV-Z]{26}$
  • vidstringrequired
    ^ver_[0-9A-HJKMNP-TV-Z]{26}$
  • kindstringrequired

Request bodyPutRenditionRequest application/json

  • manifestManifestrequired
    › 3 fields
    • algostringrequired
      fastcdc-v1 (content-defined, 512 KiB to 8 MiB) or fixed-4m-v1 (4 MiB pieces, the last shorter; what browsers send, ADR 0042)
      fastcdc-v1fixed-4m-v1
    • sizeintegerrequired
    • chunksChunkRef[]required
      › 3 fields
      • hashHashrequired
        ^[0-9a-f]{64}$
      • offsetintegerrequired
      • lenintegerrequired
  • mimestringrequired

Responses

Example request
curl -X PUT "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/renditions/kind" \
  -H "Authorization: Bearer $SIDESPACE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"manifest":{"algo":"fastcdc-v1","size":734003200,"chunks":[]},"mime":"video/quicktime"}'
Example response · 200
{
  "kind": "kind",
  "mime": "video/quicktime",
  "manifest_hash": "manifest_hash",
  "size": 734003200
}