Skip to navigation

Run automation

Beta

Start a manual run of the automation’s current version and queue it; returns the run id to poll with GET /automations/runs/{run_id}. The inputs are validated against the version’s inputs schema with declared defaults filled in; a refusal is 400 with detail.code = INVALID_RUN_INPUTS, detail.issues[] naming each problem’s path and message, and detail.subject = inputs (fix the request body) or schema (the version’s pinned schema is invalid; republish the automation). Also refused with 400 when the automation has no published version, is archived, or automation runs are switched off for the deployment. Send an Idempotency-Key header to make the launch safe to retry: repeating the identical request with the same key replays the original response (deduplicated: true) instead of queuing a second run; the same key with different parameters is rejected with 422.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

asset_idstringRequired
Unique identifier of the automation asset

Headers

X-Athena-Session-CredentialstringOptional
Idempotency-Keystring or nullOptional1-256 characters

Caller-chosen key that makes the launch safe to retry. A repeated request with the same key and parameters replays the first response instead of queuing another run.

Request

This endpoint expects a nullable object.
inputsmap from strings to any or nullOptional

Run inputs, readable by steps as inputs.<name>

Response

Run queued (or replayed for a repeated key)

automation_asset_idstring
fingerprintstring
run_idstring
version_idstring
deduplicatedbooleanOptionalDefaults to false

True when this response replays the run an earlier request with the same Idempotency-Key already queued; no second run was created

modeenumOptionalDefaults to live

live, or dry_run for a rehearsal

Allowed values:
run_statusstringOptionalDefaults to queued

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error