Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

One kept revision's document, as stored

GET
/v1/studio/timelines/{timeline_id}/revisions/{revision}
curl --request GET \
--url http://localhost:8300/v1/studio/timelines/example/revisions/1 \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>'

404 when the revision is not kept (pruned, or never made).

timeline_id
required
string

Sequence UUID (malformed = 404)

revision
required
integer
>= 1

The revision

Media typeapplication/json
object
document
required

A document as studio stores and answers it: names, V1 at, defaults filled, every time snapped

object
duration_s
required

frames in seconds

number
frames
required

The sequence’s length: V1’s end (no V1 clip: the last sound’s)

integer
target
required

The sequence’s geometry and rates; the codec is the export’s (H.264 + AAC in MP4)

object
width
required
integer
>= 16 <= 4096 multiple of 2
height
required
integer
>= 16 <= 4096 multiple of 2
fps
required

One of the rate table (exact rates 24000/1001, 30000/1001, 60000/1001 for the NTSC ones)

number
Allowed values: 23.976 24 25 29.97 30 48 50 59.94 60
sample_rate
required
integer
Allowed values: 44100 48000
tracks
required
Array<object>
>= 1 items <= 9 items
object
name

Answers only (ignored in a write): V1, then A2…A9 by position (A1 is V1’s own sound, drawn under it)

string
/^(V1|A[2-9])$/
kind
required
string
Allowed values: video audio
gain_db
number
0 >= -60 <= 12
mute
boolean
clips
required
Array<object>
<= 500 items

A slot: a take, or an empty slot (take_id null, hold): black and silence; on an audio track only a New line’s placeholder

object
id
required

A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)

string
/^[a-z0-9]{1,16}$/
take_id
required
string | null format: uuid
in

A video take: the source time it starts at (default 0)

number
<= 86400
out

A video take: the source time it ends at (default its length)

number
<= 86400
hold

An image take or an empty slot: its length in seconds

number
> 0 <= 3600
at

An audio track: where it starts on the sequence (required there); V1: computed, ignored in a write

number
<= 86400
gain_db
number
0 >= -60 <= 12
mute

V1: the clip’s own sound is off

boolean
transition_in
object
type
required
string
Allowed value: dissolve
frames
required

Centred on the cut: half before it, half after

integer
>= 2 <= 240 multiple of 2
alternatives

The takes made for this slot, oldest first; the current take_id is among them (studio adds it). Replace picks one

Array<string>
<= 32 items unique items
shot
One of:

A generation filling this slot (made by studio only; a write keeps it or drops it): a New shot’s run, or a Re-render batch’s step. In answers it adds status and, failed, error

object
run_id
required
string format: uuid
batch_id
string format: uuid
step

The re-render pipeline’s step for this clip

string
/^clip_[a-z0-9]{1,16}$/
status

Answers only: the run’s, or the batch step’s (a cancelled or succeeded one is gone from the document)

string
Allowed values: queued running failed
error

Answers only, failed: the run’s error

string | null
number

V1 only: the shot number (“Shot 4”), given by studio when the clip is added (the highest so far + 1) and kept when it moves; a write cannot change a stored clip’s.

integer
>= 1
offline

Answers only, true when the take is deleted or gone: the clip keeps its place and length, plays as offline and blocks an export

boolean
link

An audio-track clip only: the V1 clip it is linked to

string
/^[a-z0-9]{1,16}$/
markers

At most 200 (too_many_markers); absent = none; answers sort them by time, then id, and leave the list out when empty

Array<object>

A named point on the sequence (snapped to frames; drawn on the ruler, a snap target)

object
id
required

Unique among the markers

string
/^[a-z0-9]{1,16}$/
at
required

Sequence seconds; with V1 clips never past the end (marker_past_end)

number
<= 86400
name
string
>= 1 characters <= 80 characters
color

A marker’s colour, drawn with the theme’s own shade

string
Allowed values: red orange yellow green blue purple
revision
required
integer
>= 1
by
required
string
Allowed values: user studio
via
required

A user write: where it came from; studio’s: null

string | null
Allowed values: web api mcp assistant
saved_at
required
string format: date-time
ops_summary
required

The op names of an /edits call (split, remove), else the write’s kind (edit, add, shot, line, rerender, undo, redo, restore, fill)

string | null
clips
required

V1 clips

integer
duration_s
required
number

Example

{
"by": "user",
"via": "web"
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}