Skip to content
中文

Read project timeline

GET /cut/v1/projects/{project_id}/timeline

Inspect clips and markers in a selected project range before editing. view=full returns structured tracks with all timeline positions in seconds; view=compact returns compact text for script context. from and to are seconds and tracks limits the selection to comma-separated track ids from state. Concurrent changes while preparing a full timeline return 409; retrieve the latest state and try the read again.

Support: supported

Parameters

NameLocationTypeRequiredDescription
project_idpathstringtrueProject identifier returned by its create or list operation; use the id, not a display name.
viewquerystringfalsefull returns structured clips; compact returns compact textual editing context.
fromquerynumberfalseOptional start of the selected project range in seconds; omit for the beginning.
toquerynumberfalseOptional end of the selected project range in seconds; omit for the end.
tracksquerystringfalseComma-separated track ids from state to include; omit to include every track.

Response

HTTP 200

Requested resource or operation result; use its revision when preparing a guarded edit.

application/json

Name Type Description
revision integer Committed project revision from retrieve, state, timeline or execute; increases after each successful write.
view string full returns the structured timeline. / compact returns human-readable editing context.
timeline object Full timeline at one revision; positions and lengths are seconds.
timeline.duration number Total duration derived from the latest clip end. In seconds, not frames or microseconds.
timeline.tracks array<object> Ordered tracks, topmost visual layer first.
timeline.joins array<object> Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
timeline.markers array<object> Named points on the timeline.
text string Compact timeline description with second-based positions, suitable as context for an editing script.