Skip to main content
POST
Submit a run

Behavior

  • Send Idempotency-Key (at most 255 characters) to make retries safe. The same key and request return the original run; a changed request returns 409 idempotency_key_reused. Keys have no timer and last as long as the run. See Runs.
  • Engines of the matching type need an acting principal in Nexio-Act-As. See Authentication and access.
  • The shape of input depends on the engine’s type and configuration. See Engine types and the engine’s Contract page in the portal.

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Idempotency-Key
string

Optional, at most 255 characters. A repeat with the same key and body answers the first run.

Path Parameters

engineSlug
string
required

The engine's slug, unique in the caller's org.

Body

application/json

Exactly one of: the caller's input (SubmitRunRequest), or a subject (SubmitRunSubjectRequest) for an engine whose submission the platform assembles. A body with a subject and any input field is 400 invalid_request.

input
object
required
engine_version
string
offerings
object[] | null
step
string
submitted_by
string
test_scenario
string
traffic_class
string

Response

OK

run_id
string
required

The run. Read its status and results at GET /runs/{run_id}.

run_state
object
required

What a reader does with the status.

status
string
required

The run's admission status.

assembly
enum<string>

Subject launches: deferred when the platform's worker assembles the submission while the run is queued (a book account), inline when it was assembled before admission (an account added in the Workbench).

Available options:
deferred,
inline
engine
object

Subject launches: the engine the run belongs to.

existing
boolean

Subject launches: true when the launch joined a run already working on the subject (200) rather than creating one (202).

risk_currency
enum<string>

Program subject launches: what the launch found of the account's Risk assessment. current designs on it; missing or stale queues the Program run behind a new Risk run; running queues it behind the Risk run already working on the account. Absent on a join.

Available options:
current,
missing,
stale,
running
risk_run
object

Program subject launches: the Risk run the Program run is designed on (reused: true, with that run's status) or queued behind. Read its status at GET /runs/{risk_run.run_id}. When it ends failed or cancelled, by any path (the worker, a cancel while queued, the orphan reaper), the Program run fails with error_details.code risk_run_failed; when its admission is refused the Program run fails with error_details.code risk_launch_failed.

serving
object

Subject launches assembled inline: the serving the submission was read from.

source_snapshot
object

Subject launches assembled inline: the source snapshot the submission was stamped with. A deferred launch's arrives on the run's stored input.

started_at
string<date-time>

Subject launches: when the run was admitted (for a joined run, its own admission).

trigger
string

Subject launches: what asked for the run.

Last modified on November 30, 2026