studioPlanTimelineExport
const url = 'http://localhost:8300/v1/studio/timelines/example/export/plan';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"revision":1,"host":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/timelines/example/export/plan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "revision": 1, "host": "example" }'revision absent = the current one; one that is not kept (older than the last 100) is 404.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Sequence UUID (malformed = 404)
Request Body
Section titled “Request Body”object
Export: required (409 when not current)
Run it on this host (one of its envs with media); absent = automatic
Example generated
{ "revision": 1, "host": "example"}Responses
Section titled “Responses”OK
object
The picture is copied as it is; the sound is always re-encoded
object
AAC-LC 192 kb/s stereo
Re-encode: bits per second; null for a stream copy
(always sent): every sound the mix reads, V1 then the audio tracks in order (V1 video clips with sound and audio-track clips with a take; not muted, not offline), with the facts each is resampled from: every one is resampled to output.sample_rate and up-mixed to stereo before the mix
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
An audio take’s own rate (audio.sample_rate: 24000, 44100); null when studio does not know it (a video’s sound, an upload): ffmpeg reads it
1 for an audio take made by a run (mono WAV); null when not known
The env that would run it now (automatic choice, or the named host’s); null when none
True: a hardware encoder; false: software (libx264); null without a host
Example
{ "reasons": [ { "code": "gap", "message": "Shot 2 is 704 × 448; the sequence is 1280 × 704" } ], "blocked": [ { "code": "gap", "message": "Shot 2 is 704 × 448; the sequence is 1280 × 704" } ], "output": { "container": "mp4", "video_codec": "h264", "audio_codec": "aac" }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}