Skip to main content
POST
Start a procedure run

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Headers

Idempotency-Key
string
required

Client-chosen key for safe retries: 1-128 letters, digits, -, _, . or :. Use a new random UUID for each intended operation and the same key when retrying it. Do not put customer data or credentials in the key.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9\-_.:]+$

Body

application/json
procedureId
string

The published procedure to run. Send procedureId or source (a draft), not both.

Maximum string length: 256
Pattern: ^[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*$
version

A published version, or live (the default). Only with procedureId.

Required range: 0 < x <= 9007199254740991
source
string

Starts a draft: this root document, compiled and run without publishing it. As publishProcedure takes it. Send procedureId or source, not both.

Required string length: 1 - 1048576
sourceName
string

The root document’s file name, such as intake.procedure.yaml. Required with source.

Required string length: 1 - 512
fragments
object

Fragment documents the draft’s root includes, by path. At most 128.

documents
object

Other documents the draft’s source reads, by path. At most 128.

inputs
object

Input values by name, as getProcedureVersion describes them. An omitted input takes its default.

connections
object

Connection id for each connection slot the version declares.

projectId
string<uuid>

The project the run belongs to.

visibility
enum<string>

private runs are visible only to the person who started them. Defaults to the procedure’s setting, and to private for a draft.

Available options:
collaborative,
private

Response

A retry: the run this request started before.

outcome
enum<string>
required

already_started when this Idempotency-Key and request started a run before: that run.

Available options:
started,
already_started
run
object
required