14 个接口 · 概览
sidstring必填curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/namespaces" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"items": [
{
"namespace": "x-acme.qc",
"owner": {},
"created_at": "2026-11-14T09:30:00Z"
}
]
}sidstring必填nsstring必填owner_idstring必填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"}'{
"namespace": "x-acme.qc",
"owner": {
"id": "id",
"email": "mei@studio.example",
"display_name": "display_name",
"kind": "human"
},
"created_at": "2026-11-14T09:30:00Z"
}sidstring必填nsstring必填204curl -X DELETE "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/namespaces/x-acme.qc" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"sidstring必填vidstring必填200itemsSidecar[]namespacestring必填docobject必填schema_versioninteger必填producerobject | null必填revinteger必填revision_idstringnewer_revision_idstringcurl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"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"
}
]
}sidstring必填vidstring必填nsstring必填curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"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"
}Built-in namespaces are validated against proto/sidecar/
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.
sidstring必填vidstring必填nsstring必填If-Matchstringdocobject必填schema_versionintegerproducerobjectrevintegercurl -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":{}}'{
"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"
}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.
sidstring必填vidstring必填nsstring必填If-Matchstringopsobject[]必填opstring必填setunsetaddremovepathstring必填valueanyrevintegerschema_versionintegerproducerobjectcurl -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"}]}'{
"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"
}sidstring必填vidstring必填nsstring必填204curl -X DELETE "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc" \
-H "Authorization: Bearer $SIDESPACE_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.
sidstring必填vidstring必填nsstring必填200itemsSidecarRevision[]idstring必填ninteger必填bystring必填aiuserbased_onstring | null必填currentboolean必填created_byUser | any必填schema_versioninteger必填producerobject | null必填docobjectcurl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc/revisions" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"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": {}
}
]
}sidstring必填vidstring必填nsstring必填ridstring必填curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/sidecars/x-acme.qc/revisions/rid" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"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": {}
}sidstring必填vidstring必填nsstring必填If-Matchstringrevision_idstring必填revintegercurl -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"}'{
"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"
}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).
sidstring必填vidstring必填curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/media" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"state": "none",
"stage": "start",
"progress": 0.5,
"eta_s": 1,
"ahead": 1,
"renditions": [
"rendition"
],
"media": {}
}sidstring必填vidstring必填kindstring必填curl "https://side.space/v1/spaces/spc_01JD7Q2M8X4V6N0R3T5W9Y1B2C/versions/ver_01JD7Q4B6D8F0H2J4L6N8Q0S3T/renditions/kind" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"kind": "kind",
"mime": "video/quicktime",
"manifest_hash": "manifest_hash",
"size": 734003200
}sidstring必填vidstring必填kindstring必填algostring必填fastcdc-v1fixed-4m-v1sizeinteger必填chunksChunkRef[]必填offsetinteger必填leninteger必填mimestring必填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"}'{
"kind": "kind",
"mime": "video/quicktime",
"manifest_hash": "manifest_hash",
"size": 734003200
}