Get Media Facts
get_media_factsRead prepared subject tracks and behind-subject mattes for one media item. For an exact readiness check, pass kind + startSec + endSec together using the same SOURCE window sent to prepare_media; exact.state is pending | ready | failed | available | unavailable. If subjectTrack was prepared without intent, omit all three filters and check the whole-source subjectTrack in facts instead. Wait for the required fact to be ready before preview_frame / score_composition.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Resolve one exact editor prerequisite. Requires startSec and endSec; the response includes the server-selected `exact` result. | |
| endSec | No | Source-out of the clip's trim, in seconds. Must be sent WITH startSec. | |
| startSec | No | Source-in of the clip's trim, in seconds. Must be sent WITH endSec — one without the other is a 400, never a silent whole-source default. | |
| mediaItemId | Yes | mediaItemId (path). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | The server-selected fact or offer for one exact source window. Present when kind, startSec, and endSec are supplied; clients consume this instead of recreating the fact hash. | |
| facts | No | ||
| offers | No | What is NOT yet present and could be bought. A `matte` offer appears ONLY when the request carried `startSec`+`endSec` (the clip's SOURCE window) — a matte's price is a function of its duration, so there is no honest whole-source matte quote. `transcript` is never offered: it is produced by the ingest pipeline, not bought here. |