What are Moments Collections?
A Moments Collection applies Find Moments criteria across every video in the collection. Create it withcollection_type: "moments" and one or more criteria in moments_config; from then on, each file you add is processed against all attached criteria automatically — one run per (file, criterion) pair. The result is a standing, queryable dataset of moments across your library: every complaint in a quarter of sales calls, every safety violation across inspection footage, every claim in a season of episodes.
Managing criteria
Criteria are mutable after creation:- Attach a criterion — starts a backfill over the collection’s existing members; the attachment’s
backfill_statusandfiles_total/files_completed/files_failedcounters track progress (echoed live on the single-collection GET). - Detach a criterion — stops future processing. Completed runs and their moments persist as account history: they remain visible on their own run endpoints, in account-scoped search, and in the query tables.
Reading results
- Enumeration: List Collection Moments and List Collection Moment Findings return records with provenance (
file_id,job_id,criterion_name) and cursor pagination. The default sort is positional (by file, then start time); score sorts require narrowing to a single criterion, because raw criterion scores are never comparable across criteria. - Structured queries: the Query API exposes
moments,moment_findings, andmoment_collection_linksvirtual tables for SQL and natural-language questions (“which rep drew the most high-heat complaints?”). - Search:
POST /v1/searchwithscope: "moment"runs semantic search over the collection’s moments, optionally narrowed bycriterion_name. Hits carry the full moment record plus asearch_score(query relevance — distinct fromcriterion_scoreandrank_score). - Agent: the Responses API can answer moments questions over these collections through its SQL tool with no extra setup.