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

Check a pipeline document with the pipeline rules without saving it

POST
/v1/studio/pipelines/validate
curl --request POST \
--url http://localhost:8300/v1/studio/pipelines/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "title": "example", "nodes": { "additionalProperty": { "kind": "inputs", "title": "example", "inputs": [ { "name": "example", "type": "Text", "label": "example" } ], "position": { "x": 1, "y": 1 } } }, "edges": [ [ "still", "review" ] ], "remote": { "enabled": false, "providers": [ "example" ], "max_calls": 200, "max_tokens": 400000 } }'

Every pipeline rule, as the caller (the workflows it names are looked up among the templates and the caller’s workflows, each checked with the graph rules against the live palette). A body that does not fit PipelineDoc is a plain 422 {detail}; pipeline problems are never a 422 here. 503 while studio’s registry watches have not delivered yet.

Media typeapplication/json

Write, decide and memory; Node ids are stable slugs. At most 24 nodes and 64 KB (problems, not the schema). Other top-level keys are ignored by validate; PipelineCreate and PipelineUpdate are closed.

object
title
required

Trimmed; blank = 422

string
>= 1 characters <= 80 characters
nodes
required
object
>= 1 properties
key
additional properties
One of: discriminator: kind
object
kind
required
string
Allowed value: inputs
title

The card’s title; absent = derived by the client

string
>= 1 characters <= 60 characters
inputs
required

The batch’s columns, in order

Array<object>
>= 1 items <= 16 items
object
name
required

Unique in the node; a batch column is <inputs node id>.<name>; a step binds it as $<name>

string
/^[a-z][a-z0-9_]{0,63}$/
type
required

A pipeline input’s type: Text fills a string/text param, Int an int, Float a float, Seed a seed, Image an image param (or a rows param with one Image field, as a one-item list)

string
Allowed values: Text Image Int Float Seed
label

Absent = the name

string
>= 1 characters <= 60 characters
position

The card’s top-left in the Graph view, canvas pixels; absent = laid out by the client (elkjs, “Tidy layout”)

object
x
required
number
>= -1000000 <= 1000000
y
required
number
>= -1000000 <= 1000000
edges
required
Array<array>
<= 64 items
remote

Calls that leave the machine. Off by default (absent = off); a remote: model or a network custom node needs enabled and its provider in providers (remote_not_enabled), and the deployment’s remote switch (remote_off). The caps are per batch, over every row and the director’s chat; a call past one fails its row (remote cap reached)

object
enabled
boolean
providers

Remote providers this pipeline may call; missing = []

Array<string>
<= 8 items unique items
max_calls
integer
default: 200 >= 1 <= 10000
max_tokens
integer
default: 400000 >= 1000 <= 10000000

The problems

Media typeapplication/json
object
problems
required

Sorted by node (whole-pipeline ones first), then code, port, param

Array<object>

One broken pipeline rule, the same shape as Problem: node the pipeline node, port a bind key (<node>.<param> of the step’s workflow) or from for an output, param an input name or a step input key

object
code
required

May grow in a minor version; an unknown code blocks running

string
Allowed values: too_many_nodes too_large inputs_node duplicate_input unknown_node edge_invalid branch_not_gate uncapped_cycle too_many_runs unreachable dead_end no_output gate_takes gate_keep bind_source unknown_workflow workflow_cannot_run unknown_preset step_input_invalid bind_unknown bind_type unbound_input step_seeds unknown_look look_fit too_many_calls judge_criteria decide_routes write_target unknown_model agent_tools director_count fanout_source fanout_takes model_media remote_not_enabled remote_off unknown_custom custom_input
message
required

Human text; not stable

string
>= 1 characters
blocks
required
string
Allowed values: save run
node
string
port
string
param
string
can_save
required
boolean
can_run
required
boolean
bounds

The worst case per row, sent when nothing blocks saving. Submit multiplies by the rows for its estimate.

object
runs
required

Generation runs: Σ over steps of seeds × branches × visits (branches: a fanned-out step’s list max, else 1)

integer
<= 64
llm_calls
required

Judge, write and decide visits (each one ask run, at most 2 tries; a re-ask after a failed check is a second run)

integer
<= 32
tool_calls

Agent visits × max_tool_calls

integer
remote_calls

Requests to remote providers (a re-ask included), per row; the director’s chat is per batch (egress)

integer
remote_tokens

Their token bound per row

integer
chat

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
calls
required
integer
tokens
required
integer
tool_calls
required
integer
added_rows

When an agent declares rows.add: the most rows agents may add to a batch (100), each with the per-row worst case

integer
>= 1 <= 100
models

Judge, write and decide node id → the ask workflow its model resolves to now (auto included); a node without one is left out.

object
key
additional properties
string
egress

What leaves the machine, per node whose model is a server or remote one (or a custom node that calls the network), by node id; sent with bounds; [] = nothing leaves

Array<object>

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
node
required
string
where
required

Server: a local server (its calls are queue items); remote: a remote provider; network: a custom node that calls the network

string
Allowed values: server remote network
provider
required
string | null
model
required
string | null
fields
required
Array<string>
<= 32 items
thumbnails
required
integer
0
per_row
required

The worst case per row (a re-ask included)

object
calls
required
integer
tokens
required
integer
chat
required
One of:
object
calls
required
integer
tokens
required
integer
reserved

The memory reserved for the local servers it uses

Array<object>

A local server the pipeline uses, and the memory the host reserves for it (always, while the provider is enabled)

object
provider
required
string
host
required
string
memory_gb
required
number
>= 0.5

Example

{
"problems": [
{
"code": "too_many_nodes",
"blocks": "save"
}
],
"egress": [
{
"where": "server",
"thumbnails": 0
}
]
}

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

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