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

Undo the latest edit (written forward as a new revision)

POST
/v1/studio/magic/boards/{board_id}/undo
curl --request POST \
--url http://localhost:8300/v1/studio/magic/boards/example/undo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "revision": 1 }'

409 when revision is not the current one, or nothing to undo (none, or older than the kept revisions).

board_id
required
string

A Magic board’s UUID (another user’s or malformed = 404)

Media typeapplication/json
object
revision
required

The current revision, as the caller has it

integer
>= 1

Example generated

{
"revision": 1
}

The board

Media typeapplication/json
object
id
required
string format: uuid
name
required
string
revision
required
integer
>= 1
doc
required

One board: lanes in order, blocks (in lane, then time order), links, transitions, assets and notes

object
target
required
object
width
required
integer
>= 16 <= 8192
height
required
integer
>= 16 <= 8192
fps
required
integer
>= 1 <= 120
sample_rate
required
integer
>= 8000 <= 192000
lanes
required
Array<object>
<= 64 items
object
id
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
name
required
string
>= 1 characters <= 80 characters
role
required

What a lane is for; it only picks the kind Add offers first (any kind goes on any lane)

string
Allowed values: storyboard shots voice music sound free
hidden
boolean
kind

The kind Add picks first

string
Allowed values: frame image video voice music sound
blocks
required
Array<object>
<= 2000 items

A block on a lane (MagicBlockNew with its id)

object
id
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
lane
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
at
required

A time or length in frames at the board’s fps

integer
<= 10368000
length
required
integer
>= 1 <= 10368000
kind
required
string
Allowed values: frame image video voice music sound
name
required
string
<= 120 characters
request
required
object
kind
required
string
Allowed values: frame image video voice music sound
model

The workflow id of a model GET /v1/studio/magic/kinds lists for the kind; absent: the first one

string
<= 80 characters
prompt
string
<= 4000 characters
line

A voice block’s line

string
<= 4000 characters
turns

A dialogue’s turns (a Voice block with turns, owner 2026-11-27)

Array<object>
<= 100 items
object
speaker
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
text
required
string
<= 4000 characters
voice

A voice block’s voice: an asset id

string
/^[A-Za-z0-9_-]{1,40}$/
style

A storyboard frame’s style

string
Allowed values: film sketch rough full
from

A sound made from this shot’s video

string
/^[A-Za-z0-9_-]{1,40}$/
refs
Array
<= 50 items
One of:
object
asset
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
first
One of:
object
asset
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
last
One of:
object
asset
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
width

Absent: the board’s

integer
>= 16 <= 8192
height
integer
>= 16 <= 8192
seed

-1 or absent: random

integer
>= -1 <= 9007199254740991
count

How many runs one Generate makes (seeds seed, seed + 1, …)

integer
>= 1 <= 4
voice_id

A saved voice (library item of kind voice) when voice names no asset with one

string
<= 80 characters
lyrics

A music block’s lyrics ([verse], [chorus] tags); empty or absent: an instrumental

string
<= 4000 characters
key

A music block’s key (D minor); absent: Auto. Sent only to a model whose key param has it as a value

string
<= 20 characters
bpm

A music block’s tempo; absent: Auto

integer
>= 30 <= 300
advanced

The model’s own params, <node>.<param> → value as a run’s inputs (the shared fields win)

object
framing

A storyboard frame’s shot size and angle (words of its prompt) and the move of the shot made from it

object
size
string
Allowed values: wide medium close over_shoulder
angle
string
Allowed values: eye low high
move
string
Allowed values: still push_in pan follow
shot_model

A storyboard frame’s pick of the video model Generate from board makes its shot with

string
<= 80 characters
host

Run on: its runs go to this host only (RunRequest.host); absent: Auto. Not one of its inputs: a change leaves its takes current

string
/^[a-z0-9]{1,32}$/
loop

A sound block: its take repeats to fill the block when played and sent (one clip after another); not one of its inputs

boolean
takes
required

Take ids from its runs, oldest first (the caller’s own)

Array<string>
<= 200 items
pinned

The take it shows (absent: its latest)

string format: uuid
note
string
<= 4000 characters
effects
required
Array<object>
<= 20 items

An effect badge (baked when sent)

object
name
required
string
>= 1 characters <= 80 characters
params
object
key
additional properties
number | string
off

Kept on the block but not applied

boolean
from_frame

A shot made from this storyboard frame

string
/^[A-Za-z0-9_-]{1,40}$/
gain_db

A voice, music or sound block only (another kind is 422 by the board rules): its level in dB, the Timeline clip gain’s range; Play applies it and Send puts it on its clips’ gain_db; 0 is stored as absent

number
0 >= -60 <= 12
fade_in

A voice, music or sound block only (another kind: 422 blocks[<i>]: fade_in is for voice, music and sound blocks): seconds its sound rises from silence; Play applies it, Send puts it on its clip’s fade_in; 0 is stored as absent

number
<= 10
fade_out

As fade_in, at its end (not played while a crossfade follows it)

number
<= 10
links
required
Array<object>
<= 2000 items

A voice or music block tied to a shot, or to a run of shots; moving the shot moves the block (fitted to the run when it was)

object
block
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
to
required
Array<string>
>= 1 items <= 50 items
transitions
required
Array<object>
<= 2000 items

Between two blocks that meet on a lane, or at a lane’s start or end (exactly one of between, start, end); a cut between blocks is no transition

object
id
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
between
Array<string>
>= 2 items <= 2 items
start

A lane: the fade in at its first block

string
/^[A-Za-z0-9_-]{1,40}$/
end

A lane: the fade out at its last block

string
/^[A-Za-z0-9_-]{1,40}$/
kind
required

Crossfade: between two music or sound blocks only; between sound blocks every kind plays and sends as a crossfade

string
Allowed values: cut dissolve fade wipe morph crossfade
length
required

A time or length in frames at the board’s fps

integer
<= 10368000
request

A morph only: its own video request (kind video; model one that takes a first and a last frame; its frames are the blocks’ own: the first’s last frame and the second’s first frame)

object
kind
required
string
Allowed values: frame image video voice music sound
model

The workflow id of a model GET /v1/studio/magic/kinds lists for the kind; absent: the first one

string
<= 80 characters
prompt
string
<= 4000 characters
line

A voice block’s line

string
<= 4000 characters
turns

A dialogue’s turns (a Voice block with turns, owner 2026-11-27)

Array<object>
<= 100 items
object
speaker
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
text
required
string
<= 4000 characters
voice

A voice block’s voice: an asset id

string
/^[A-Za-z0-9_-]{1,40}$/
style

A storyboard frame’s style

string
Allowed values: film sketch rough full
from

A sound made from this shot’s video

string
/^[A-Za-z0-9_-]{1,40}$/
refs
Array
<= 50 items
One of:
object
asset
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
first
One of:
object
asset
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
last
One of:
object
asset
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
width

Absent: the board’s

integer
>= 16 <= 8192
height
integer
>= 16 <= 8192
seed

-1 or absent: random

integer
>= -1 <= 9007199254740991
count

How many runs one Generate makes (seeds seed, seed + 1, …)

integer
>= 1 <= 4
voice_id

A saved voice (library item of kind voice) when voice names no asset with one

string
<= 80 characters
lyrics

A music block’s lyrics ([verse], [chorus] tags); empty or absent: an instrumental

string
<= 4000 characters
key

A music block’s key (D minor); absent: Auto. Sent only to a model whose key param has it as a value

string
<= 20 characters
bpm

A music block’s tempo; absent: Auto

integer
>= 30 <= 300
advanced

The model’s own params, <node>.<param> → value as a run’s inputs (the shared fields win)

object
framing

A storyboard frame’s shot size and angle (words of its prompt) and the move of the shot made from it

object
size
string
Allowed values: wide medium close over_shoulder
angle
string
Allowed values: eye low high
move
string
Allowed values: still push_in pan follow
shot_model

A storyboard frame’s pick of the video model Generate from board makes its shot with

string
<= 80 characters
host

Run on: its runs go to this host only (RunRequest.host); absent: Auto. Not one of its inputs: a change leaves its takes current

string
/^[a-z0-9]{1,32}$/
loop

A sound block: its take repeats to fill the block when played and sent (one clip after another); not one of its inputs

boolean
takes

A morph only: take ids from its runs, oldest first

Array<string>
<= 200 items
pinned

A morph only: the take it shows (absent: its latest)

string format: uuid
assets
required
Array<object>
<= 200 items

The board’s own character, prop or place (Import copies a take or an Element in; never a link)

object
id
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
kind
required
string
Allowed values: character prop place
handle
required

Its @ name

string
>= 1 characters <= 40 characters
name
required
string
>= 1 characters <= 80 characters
sheet
required

Take ids: views, expressions

Array<string>
<= 50 items
voice_id
string
<= 80 characters
note
string
<= 4000 characters
imported_from

The take or Element it was copied from, for the record only

string
<= 80 characters
views

Names of sheet takes by take id (“Front”, “Side”); only takes on its sheet

object
<= 50 properties
key
additional properties
string
>= 1 characters <= 40 characters
notes
required
Array<string>
<= 100 items
ducking

The board’s Duck music (absent: on, -12; a new board stores it on); Play applies it, Send puts it on the sequence

object
on
required
boolean
db
required

How far music dips; the picks -6, -9, -12 (default), -18 or typed

number
default: -12 >= -24 <= -3
can_undo
required
boolean
can_redo
required
boolean
session_id

The board’s own session (made at its first run, hidden from GET /v1/studio/sessions): its events stream the board’s runs

string | null format: uuid
runs

Every block’s runs, oldest first (the last 20 of each block)

Array<object>

One run of a block (its run history)

object
block
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
run_id
required
string format: uuid
workflow_id
string
status
required
string
Allowed values: queued running succeeded failed cancelled
progress
integer
<= 100
error
string | null
takes
required

The takes it made

Array<string>
seed

The seed it asked for (-1: random)

integer | null
current
required

Made from the block’s inputs as they are now (false: out of date)

boolean
by
required

Who ran it (X-Helm-Client assistant)

string
Allowed values: user assistant
created_at
required
string format: date-time
render_s

Its first take’s render time

number | null
style

A board frame’s style when it ran

string
Allowed values: film sketch rough full
variant

The model variant it ran on, its title as the registry names it (Turbo; the id when no runner publishes the model); absent: its workflow has no model node

string
tail

A music or sound block with a crossfade after it: the seconds it ran past its block for the crossfade (absent: none)

number
<= 10
turn

A dialogue’s run of this turn (its index in turns); current is against that turn

integer
takes

The takes the document names, by id (one deleted since is left out)

object
key
additional properties
object
id
required
string format: uuid
kind
required
string
Allowed values: image video audio
url

Signed

string
thumb_url

Signed: a small WebP of the image or the poster once made

string | null
poster_url

A video’s poster, signed

string | null
seed
integer | null
run_id

The board’s run that made it

string | null format: uuid
sound

Kind audio only: its class (Take.sound): a music block shows an album cover, sound and voice an orb

string
Allowed values: music sound voice
duration_s

A video’s or an audio take’s seconds (a dialogue’s turns play one after another, a Loop repeats)

number | null
sections

A song with tagged lyrics (Take.audio.sections): its parts, the markers on its music block

Array<object>

One part of a song (defs section): its lyrics tag, [start_s, end_s) in the take’s own seconds

object
label
required
string
>= 1 characters <= 40 characters
start_s
required
number
<= 600
end_s
required
number
> 0 <= 600
status

Every block’s status by id

object
key
additional properties
object
status
required

Derived: draft (no take), running (a run queued or running), done (its shown take was made from its inputs as they are), out of date (they changed since), failed (its last run failed and it has no take)

string
Allowed values: draft running done out_of_date failed
progress

Running: its newest run’s

integer
<= 100
error

Failed: why

string
turns

A dialogue only: each turn’s own status, in the turns’ order (the block’s is running when one is, failed when one failed with no take, draft when none has a take, out of date when one is out of date or has no take, else done)

Array<object>
object
status
required

Derived: draft (no take), running (a run queued or running), done (its shown take was made from its inputs as they are), out of date (they changed since), failed (its last run failed and it has no take)

string
Allowed values: draft running done out_of_date failed
progress
integer
<= 100
error
string
take

The take it plays: its newest run’s

string format: uuid
asset_runs

The Make views runs, oldest first (the last 20 of each asset)

Array<object>

One run of Make views

object
asset
required

A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>

string
/^[A-Za-z0-9_-]{1,40}$/
view
required

The view it makes (“Front”)

string
run_id
required
string format: uuid
status
required
string
Allowed values: queued running succeeded failed cancelled
progress
integer
<= 100
error
required
string | null
takes
required
Array<string>
created_at
required
string format: date-time
created_at
required
string format: date-time
updated_at
required
string format: date-time
title_source

Who wrote name, as a sequence’s

string
Allowed values: default prompt user model
named_by

The model that wrote the name while title_source is model; null otherwise

string | null
<= 60 characters

Example

{
"doc": {
"lanes": [
{
"role": "storyboard",
"kind": "frame"
}
],
"blocks": [
{
"kind": "frame",
"request": {
"kind": "frame",
"style": "film",
"refs": [
{
"part": "first"
}
],
"first": {
"part": "first"
},
"last": {
"part": "first"
},
"framing": {
"size": "wide",
"angle": "eye",
"move": "still"
}
},
"gain_db": 0
}
],
"transitions": [
{
"kind": "cut",
"request": {
"kind": "frame",
"style": "film",
"refs": [
{
"part": "first"
}
],
"first": {
"part": "first"
},
"last": {
"part": "first"
},
"framing": {
"size": "wide",
"angle": "eye",
"move": "still"
}
}
}
],
"assets": [
{
"kind": "character"
}
],
"ducking": {
"db": -12
}
},
"runs": [
{
"status": "queued",
"by": "user",
"style": "film"
}
],
"takes": {
"additionalProperty": {
"kind": "image",
"sound": "music",
"sections": [
{
"label": "chorus"
}
]
}
},
"status": {
"additionalProperty": {
"status": "draft",
"turns": [
{
"status": "draft"
}
]
}
},
"asset_runs": [
{
"status": "queued"
}
],
"title_source": "default"
}

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"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}