Skip to main content
POST
Start a run

Headers

x-user-id
string
required

Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.

Path Parameters

sop_id
string
required

Body

application/json

Request body for starting a run.

inputs
Msg · object[]

What the run is started with, read by its first step.

Response

Successful Response

One run of a procedure.

user_id
string
required
sop_id
string
required
definition
SOPData · object
required

A procedure: its milestones, in order.

id
string

Unique identifier for the credential.

updated_at
string<date-time>
created_at
string<date-time>
sessions
Sessions · object
state
SOPRunState · object

One execution of a SOP, and the whole of what is worth saving.

It covers the SOP's own state and nothing below it: an executor that keeps state of its own (an :class:~..agent.Agent does) is persisted by whoever built it, the same way it is built.