Endpoint reference
| Method and path | Request | Response |
|---|---|---|
GET /datasets |
No body or pagination query | {items:[{id}]} |
GET /datasets/{id} |
Dataset ID from the list | {id,name,description,createdAt,rating,tags} |
GET /datasets/{id}/files |
Dataset ID | {items:[{id,name,size,kind}]} |
GET /datasets/{id}/files/{fileId} |
Dataset and file IDs from returned lists | File bytes with attachment disposition and Cache-Control: no-store |
Fields absent in dataset metadata may be omitted in the response. The file-list size is in bytes; kind can be absent.
Dataset and file lists are not paginated. limit and offset do not provide paging here. Only operation and event routes have the pagination described in their reference pages.
These resources belong to the shared installation/project, not to individual clients. Every permitted API client can read them; files are not restricted to captures made by the caller.
Match a capture to a dataset
- Save the capture operation ID and available request/run correlation IDs.
- Watch exposure/processing events for the request where present.
- Use
datasetNamefrom the relevant transfer/readiness event and reconcile it with returned/datasetsIDs. - Read dataset metadata, then list its files. Download by the returned opaque file ID.
Dataset IDs are actual dataset folder identifiers, not the descriptive name field, capture operation IDs, or renderer URLs. URL-encode every path segment. Do not invent IDs from a camera number or use absolute paths.
files.transferred reports a transfer stage. dataset.ready is the readiness event after configured processing settles. Both carry dataset name, index, frame count, and a completion flag; do not ignore complete or assume every event represents a final complete multi-camera result. A direct action's succeeded state means dispatch returned, not that either event has occurred.
Managed triggering waits through actual dispatch/repeat completion or movie end, or its bound Script runner's completion. That still does not mean transferred files or processed results are ready.
Not every application event carries a request ID. Match events using only fields actually supplied. Do not attribute the next shared readiness event to your request solely because it arrived next.
Download constraints
File IDs are opaque hashes derived from dataset-indexed relative paths. They are not user-selected paths or globally stable media IDs. Re-list after dataset metadata changes.
The file list examines paths referenced in current dataset metadata, with bounded traversal depth. It is not a recursive directory browser and does not list every file on disk. The API verifies the dataset under the active datasets root and checks metadata and real file paths. Traversal and symlink escapes outside the project/dataset are rejected.
Downloads require a currently indexed regular file that still resolves inside the dataset. Unknown datasets/files return 404 not_found. Missing or changed files can also cause a request failure; re-list and reconcile rather than constructing a filesystem URL.
The API returns an attachment filename, not an absolute server path. It does not invoke the gallery's migration/repair path during reads. Do not depend on listing to repair old datasets.
There are no public routes for upload, arbitrary disk reads, file deletion, archive maintenance, dataset repair, or starting processing. Timeline dataset create/select/rename actions are a separate, public-policy-checked feature, not generic filesystem operations.