The caller's batches, newest first (`created_at`, then `id`), paginated
const url = 'http://localhost:8300/v1/studio/batches?limit=60';const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8300/v1/studio/batches?limit=60' \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”next_cursor of the previous page; opaque (malformed = 422)
Responses
Section titled “Responses”A page of batches
object
object
The title in the batch’s snapshot
The session its runs are in; null after that session was deleted
Queued: stored, the engine has not started it; running; waiting: the engine reports running but every row that has not ended is waiting on a gate (pick to continue); paused (reason says why: by you, three rows in a row failed with one error, or the engine restarted: press Resume); done: every row ended (some may have failed); failed: the engine could not run it at all (reason); stopped: by Stop. events, except queued.
What the owner asked for last (Pause, Resume, Stop); status follows once the engine confirms. While pause or paused, the dispatcher holds the batch’s queued runs
Why it is paused or failed; null otherwise
Rows by BatchRow.status; queued, running, waiting, succeeded, failed and cancelled add up to total
object
Rows parked on a gate (“waiting for a pick”)
The engine first reported running
Done, failed or stopped
A batch of a pipeline: the pipeline (it may be deleted since); absent or null for a batch of one workflow, whose workflow_* then describe it. For a pipeline batch workflow_id / workflow_title are its first step’s
With pipeline_id: the title in the batch’s snapshot
With pipeline_id: the version it was submitted with
With pipeline_id: the collection its output node names (the first output, by node id)
A pipeline batch: its worst case per row at Submit
object
Generation runs: Σ over steps of seeds × branches × visits (branches: a fanned-out step’s list max, else 1)
Judge, write and decide visits (each one ask run, at most 2 tries; a re-ask after a failed check is a second run)
Agent visits × max_tool_calls
Requests to remote providers (a re-ask included), per row; the director’s chat is per batch (egress)
Their token bound per row
With a director only, whatever its model source: its chat’s worst case per batch (not per row): calls max_wakes × max_turns × 2 (a re-ask included; local models: queue items), tokens max_wakes × max_tokens, tool_calls max_wakes × max_tool_calls
object
When an agent declares rows.add: the most rows agents may add to a batch (100), each with the per-row worst case
A pipeline batch: judge, write and decide node id → the ask workflow it runs (resolved at Submit, in the snapshot)
object
Made by “Run again” of this batch
A pipeline batch: what leaves the machine, as at Submit
One node whose calls leave this process for a model server: exactly what is sent (Submit shows it). fields: the parts of the prompt, by name: instruction, question, routes, each from source, items, tool:<tool> (tool results go back to the model), chat (the director’s chat), input:<field> (a custom node’s)
object
Server: a local server (its calls are queue items); remote: a remote provider; network: a custom node that calls the network
The worst case per row (a re-ask included)
object
A pipeline batch: local servers’ reserved memory
A local server the pipeline uses, and the memory the host reserves for it (always, while the provider is enabled)
object
object
The director agent node
Idle: asleep until a message or a row ends; waiting: its turn’s call is queued or held (Pause); thinking: a call or its tools run; off: the batch ended or max_wakes reached (POST …/chat is 409)
object
Requests sent (re-asks included; network retries not)
Tokens the providers reported
Transport failures (retried); counted apart from answers and verdicts
A sequence’s Re-render (pipeline_id null, pipeline_title “Re-render · pipeline_version = the revision); absent or null otherwise
Pass as cursor for the next page; null on the last page
Example
{ "batches": [ { "status": "queued", "control": "run", "egress": [ { "where": "server", "thumbnails": 0 } ], "director": { "state": "idle" } } ]}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}