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

Run one failed row again, or any row from one step of its execution ("Retry row from here")

POST
/v1/studio/batches/{batch_id}/rows/{row}/retry
curl --request POST \
--url http://localhost:8300/v1/studio/batches/example/rows/example/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "from_step": 1 }'

Sets the row queued with attempt + 1 (error, run and takes cleared from the row; the old run and its takes The row gets a new run (its idempotency key carries the attempt). A done batch becomes running again until the row ends. 409 unless the row is failed, the batch’s status is not failed or stopped and its control is not stop. With a body {from_step} (a pipeline batch): the row re-runs from that step of its current attempt’s execution, reusing the state before it. Allowed when the row is failed, succeeded, cancelled or waiting (a pending pick is dropped) and the batch is queued, running, waiting or paused with control not stop; else 409 (a done batch: this batch has finished; its checkpoints are gone). 422 when the step is not in the row’s execution or has no state (row <n> has no step <s>). from_step: 1 is the same as no body, for any of those row states.

batch_id
required
string

Batch UUID (malformed = 404)

row
required
string

Row number, from 1 (unknown or malformed = 404)

Media typeapplication/json
object
from_step
required

A step number of the row’s current attempt (RowExecution.steps[].step)

integer
>= 1 <= 2000

Example generated

{
"from_step": 1
}

The row, queued again

Media typeapplication/json
object
row
required
integer
>= 1 <= 500
attempt
required

1; +1 on every Retry

integer
>= 1
inputs
required

What the row runs with: the base inputs, then its own values, then its seed (a pipeline batch: <inputs node>.<input> keys)

object
key
additional properties
Any of:

Null only for a seed (random) or an image, media, span or voice param left empty

string | number | boolean | null
looks

A batch of one workflow: the row’s looks (its cell, else BatchCreate.looks); absent or empty = none

Array<string>
<= 8 items
status
required

Queued until its run starts (also while the run waits in the queue or is held), running while it runs, waiting while parked on a gate, then the row’s end

string
Allowed values: queued running waiting succeeded failed cancelled
run_id
required

The current attempt’s run (a pipeline row: its latest run); null before it has one

string | null format: uuid
take_ids
required

The current attempt’s takes (deleted ones left out); a pipeline row: the takes its output received, once it succeeded

Array<string>
thumb_url
required
One of:

Signed, time-limited link; opaque

string
error
required

Set when failed

string | null
started_at
required

Its run reported running

string | null format: date-time
finished_at
required
string | null format: date-time
node

Pipeline batches: the node the row is at now (parked on, or running); null when ended or not started

string | null
parked
One of:
object
gate
required

The gate node id

string
kind

; absent = gate

string
Allowed values: gate judge
suggested

A judge: its pick, pre-selected ([] when no take passed)

Array<string>
<= 8 items
decision_id
string
visit
required

Which visit of the gate (1 + times its loop went round)

integer
>= 1
keep
required

Pick 1 to keep of the candidates

integer
>= 1 <= 8
candidates
required

The takes to pick from (the gate’s step’s latest takes)

Array<string>
>= 1 items <= 8 items
cells

Pipeline batches: the run table’s cells, one per node the row reached, in the order first reached; absent for a batch of one workflow

Array<object>
<= 24 items
object
node
required

The pipeline node id

string
kind
required
string
Allowed values: step gate output judge write decide memory agent custom
attempts
required

One per visit (loop attempts stacked), oldest first

Array<object>
>= 1 items <= 64 items
object
visit
required
integer
>= 1
status
required

A step attempt: its runs’ state (queued while none of them has started); a gate attempt: waiting, picked or rejected; an output: succeeded. write, decide: queued / running, then succeeded or failed; memory: succeeded

string
Allowed values: queued running succeeded failed cancelled waiting picked rejected
run_ids
required

A step: its runs, by seed index

Array<string>
<= 8 items
take_ids
required

A step: its takes; a gate: the picked ones; an output: what it received

Array<string>
<= 8 items
candidates

A gate: the takes it offered

Array<string>
<= 8 items
seeds
required

A step: the seed of each run, by seed index

Array<integer>
<= 8 items
seconds
required

A step: the runs’ time on their hosts, summed (started to finished); null until one finished

number | null
error
required
string | null
thumb_url
required
One of:

Signed, time-limited link; opaque

string
decision_id
string
judged

A judge attempt (the run table’s judged cell: “picked 1 of 4”, the first failed criterion; the attempts side by side with each take’s reason)

object
verdict
required
string
Allowed values: pass fail
picked
required
integer
<= 8
of
required
integer
>= 1 <= 8
keep
required
integer
>= 1 <= 8
first_failed
required

The best take’s first false must; null when it passed

string | null
suggested
required
Array<string>
<= 8 items
agreed
required

Suggest: the user’s pick equalled the suggestion; null before a pick and in Auto

boolean | null
takes
required
Array<object>
<= 8 items
object
take_id
required
string format: uuid
passes
required
boolean
first_failed
required
string | null
reason
required
string
<= 300 characters
checks

Every criterion’s answer, musts then nices

Array<boolean>
<= 12 items
route

A decide: the route taken

object
label
required
string
to
required
string
branch

A fanned-out step: one attempt per (visit, branch); branch = the item index

integer
<= 23
agent

An agent attempt (4 turns · 6 tools · 14 shots)

object
turns
required
integer
tool_calls
required
integer
tokens
required
integer
items
required

Its list’s length (0 without one)

integer
<= 24
route
required
string | null
loop

A judge with a branch or a decide: its capped loop for the cell’s “retried of ”, “gave up → ”

object
turns
required
integer
<= 10
max
required
integer
>= 1 <= 10
then
required

The node the cap sends the row to

string | null
gave_up
required
boolean

Example

{
"inputs": {
"prompt.text": "a red fox",
"echo.steps": 20
},
"looks": [
"qwen-image/window-light"
],
"status": "queued",
"thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12",
"parked": {
"kind": "gate"
},
"cells": [
{
"kind": "step",
"attempts": [
{
"status": "queued",
"thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12",
"judged": {
"verdict": "pass"
}
}
]
}
]
}

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