Skip to main content
POST
Create Run Chain

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json

Request to create and run a multi-step chain on a single reserved session/machine

steps
ChainStep · object[]
required
Minimum array length: 1
is_priority
boolean
default:false

Prioritize every run in this chain when assigning an eligible machine. Steps still execute in chain order.

shared_inputs
Shared Inputs · object | null
shared_sensitive_inputs
Shared Sensitive Inputs · object | null

Shared sensitive inputs (supports nested objects) for all steps

shared_file_inputs
FileInput · object[] | null
keep_session_after_completion
boolean | null
default:false
machine_id
string<uuid> | null
pool_ids
string<uuid>[] | null

Pool IDs to filter available machines when starting a new session. Machine must belong to ALL of these pools (intersection). Ignored when machine_id is provided.

session_id
string<uuid> | null

Response

Returns persisted run_ids for the created chain session. If Temporal dispatch fails after run persistence, this endpoint still returns 201 with run_ids; those runs are marked ERROR and include failure details in subsequent run reads.

Response for chain creation

session_id
string<uuid>
required
run_ids
string<uuid>[]
required