Skip to main content
POST
Create Run

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

Schema for creating a run

workflow_id
string<uuid>
required
is_priority
boolean
default:false

Prioritize this run over non-priority runs when assigning an eligible machine. Does not preempt active runs or bypass session ordering.

main_prompt
string | null

Optional per-run prompt override. When provided, this run executes the supplied prompt text instead of the workflow's stored main_prompt.

Minimum string length: 1
main_agent_model_id
string<uuid> | null

Optional per-run main agent ModelConfiguration.id override. Stored as run model_metadata.main_agent_model_id and used only for this run.

model_metadata
WorkflowModelMetadata · object | null

Optional per-run model configuration metadata. Provided fields override the workflow's model_metadata for this run only.

machine_id
string<uuid> | null

Machine ID. If not provided, an available machine will be automatically selected.

pool_ids
string<uuid>[] | null

Pool IDs to filter available machines. Machine must belong to all of these pools (intersection). Ignored when machine_id is provided.

input_values
Input Values · object | null

Input values for workflow variables

file_inputs
FileInput · object[] | null

Files to upload to the machine

sensitive_input_values
Sensitive Input Values · object | null

Sensitive input values (supports nested objects). These are not stored and will be written to a secure vault and referenced by alias only. In workflow input_schema, sensitive root keys are validated under a '$' prefixed key (for example input key 'api_key' is '$api_key').

session_id
string<uuid> | null

Join an existing session; overrides machine_id/pool_ids

start_session
boolean | null
default:false

Start a new session on the machine used by this run. Session ID will be this run's ID.

session_alias
string | null

Persist outputs under this alias for $ref in this session

release_session_after
boolean | null

Release the session after this run completes successfully

Response

Successful Response

Run response schema

workflow_id
string<uuid>
required
machine_id
string<uuid> | null
required
id
string<uuid>
required
status
enum<string>
required
Available options:
scheduling,
running,
running_checks,
success,
cancelled,
task_failed,
error
created_at
string<date-time>
required
user_id
string<uuid> | null
organization_id
string | null
is_priority
boolean
default:false
error
string[] | null
output_data
Output Data · object | null
input_attachment_ids
string[] | null
output_attachment_ids
string[] | null
run_message_history
Run Message History · object[] | null
input_values
Input Values · object | null
main_prompt
string | null

Per-run prompt override used for execution. Null means the run falls back to the workflow's current main_prompt.

model_metadata
WorkflowModelMetadata · object | null

Per-run model metadata overrides used for execution. Null means the run falls back to the workflow's model_metadata.

pool_ids
string<uuid>[] | null
sensitive_input_aliases
Sensitive Input Aliases · object | null
usage_metadata
Usage Metadata · object | null

Arbitrary usage/billing metadata captured during a run (schema is flexible)

post_run_checks
RunPostRunCheckSnapshot · object[] | null

Version-tolerant snapshot/results for the run's post-run checks.

session_id
string<uuid> | null
session_alias
string | null
release_session_after
boolean | null
started_at
string<date-time> | null
ended_at
string<date-time> | null