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

Answer a gate for one parked row (pick 1..keep of its candidates, or reject them all)

POST
/v1/studio/batches/{batch_id}/rows/{row}/pick
curl --request POST \
--url http://localhost:8300/v1/studio/batches/example/rows/example/pick \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "gate": "example", "take_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "note": "example" }'

In one transaction: records the pick on the row’s gate cell (picked / rejected), sets the row running pipelines resumes the row’s thread with it. Rows can be picked in any order. The same pick again for the same gate visit answers 202 with the row and sends nothing. 409 when the row is not parked on gate (row <n> is not waiting at <gate>), a different pick for that visit was already sent, or the batch is stopped/failed or its control is stop. 422 when take_ids are not among the candidates, repeat one, or are more than the gate’s keep (pick 1 to <keep> of the candidates). Studio derives agreed (the picked set equals the judge’s suggestion; reject all with an empty suggestion: true), pipelines stores a pick with a note as a judge example in the pipeline’s memory. note on a gate pick is 422 (a note is kept for judge picks only).

batch_id
required
string

Batch UUID (malformed = 404)

row
required
string

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

Media typeapplication/json
One of:
object
gate
required
string
/^[a-z][a-z0-9_]{0,63}$/
take_ids
required
Array<string>
>= 1 items <= 8 items unique items
note

A judge pick only: why (kept as a judge example in the pipeline’s memory: how the judge learns your taste)

string
>= 1 characters <= 2000 characters

The row, moving on

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