Index a video
index_videoIndex a Library video so search_video_moments can search it, or index one range of it again with shorter segments. mediaId is the video's Asset ID from search_assets or its Library id. startSeconds and endSeconds null index the whole video: new uploads are indexed automatically unless disabled in global settings, so do that only for an older, disabled or failed video. Segment length follows the indexed length: 2 seconds for up to a minute, growing to 6 seconds at three minutes and longer. Index a range of at least 4 seconds when a search moment is too coarse for the question: take that moment's startSeconds and endSeconds, a few seconds wider on each side. A range that rows already cover at least as densely returns the existing job without a charge. Uses about 22 credits a minute of indexed video, billed by the second; an accepted submission keeps its credits even if it later fails or is deleted. It never prevents editing. Returns a job; wait for it with read_video_intelligence and its jobId before searching.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mediaId | Yes | The video: its Asset ID from search_assets, or its Library id (libraryId from search_assets or read_asset, id from search_library). | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| endSeconds | Yes | Source seconds where the indexed range ends, at least 4 seconds after startSeconds. null with startSeconds null indexes the whole video. | |
| startSeconds | Yes | Source seconds where the indexed range starts. null with endSeconds null indexes the whole video. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | Yes | ||
| jobId | Yes | ||
| state | Yes | ||
| reason | Yes | ||
| result | Yes | ||
| canWait | Yes | ||
| mediaId | Yes | ||
| errorCode | Yes | ||
| updatedAt | Yes | ||
| endSeconds | Yes | ||
| startSeconds | Yes | ||
| pollAfterSeconds | Yes |