Retrieve a run
GET/api/v1/automations/runs/{run_id}
GET /automations/runs/{run_id}
curl -X GET 'https://www.unitpost.com/api/v1/automations/runs/run_123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"object": "automation_run",
"id": "id_123",
"automation_id": "automation_123",
"status": "active",
"exit_reason": "string",
"subject": {
"type": "string",
"contact_id": "contact_123",
"label": "string"
},
"version": 0,
"step_count": 1,
"held": false,
"at_block_id": "at_block_123",
"backfill_job_id": "backfill_job_123",
"started_at": "2026-01-01T00:00:00.000Z",
"completed_at": "2026-01-01T00:00:00.000Z",
"automation": {
"id": "id_123",
"name": "Example",
"status": "draft",
"pause_reason": "user"
},
"trigger_node_id": "trigger_node_123",
"current_node_id": "current_node_123",
"failed_node_id": "failed_node_123",
"waiting": {
"node_id": "node_123",
"until": "string",
"event_type": "string",
"timeout_at": "2026-01-01T00:00:00.000Z"
},
"steps_executed": 0,
"action_steps_executed": 0,
"billed": false,
"trigger": {
"id": "id_123",
"type": "string",
"source": "string",
"created_at": "2026-01-01T00:00:00.000Z",
"data": {},
"data_hidden": false,
"contact_data_hidden": false
},
"definition": {
"schemaVersion": 1,
"trigger": {
"id": "id_123",
"kind": "string",
"label": "string",
"config": {}
},
"nodes": [
{
"id": "id_123",
"kind": "string",
"label": "string",
"config": {}
}
],
"edges": [
{
"id": "id_123",
"from": "you@yourdomain.com",
"fromHandle": "string",
"to": "customer@example.com"
}
],
"layout": {}
},
"steps": [
{
"id": "id_123",
"node_id": "node_123",
"node_kind": "string",
"attempt": 0,
"status": "queued",
"output": "string",
"error": "string",
"started_at": "2026-01-01T00:00:00.000Z",
"completed_at": "2026-01-01T00:00:00.000Z"
}
]
}One run with its step timeline — every executed block with status, output (branch taken, email id, skip reason; ids prefixed, so a send's message_id is the email_… or sms_… id Retrieve an email takes), error, and timing — plus where a live run is now (current_node_id, waiting), the block a failed run stopped at, the event that started it (trigger) and the graph of the version it runs on (definition). Answers "why didn't this contact get the email?". Another resource's content (an inbound email's text, the contact's email) needs that resource's read scope too. Requires the automations:read capability.
Parameters1 field
| Field | Type | Description |
|---|---|---|
run_idrequired | string · path | — |
Response · 200 fields24 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
automation_idrequired | string | — |
statusrequired | enumactive | waiting | completed | exited | goal_met | failed | canceled | — |
exit_reasonrequired | string | null | Why the run stopped; null while live. `finished` (it reached the end, or an Exit block, which may give its own reason), `exit_condition`, `goal`, `restarted`, `max_steps`, `ttl`, `cancel`, `automation_archived`, `block_removed`, `stale_hold`, `error:<node_id>`, … A run that reached an Exit block before 2026-12-01 reads `exit_node` (status `exited`). |
subjectrequired | object | — |
versionrequired | integer | null | — |
step_countrequired | integer | — |
heldrequired | boolean | A pause froze the run at its next step; Resume (or a publish) continues it. A run still on a wait timer of a paused automation reads false until its wait ends, then it is held there. Unpublishing a paused automation ends every run in progress, held or not, unless `held_runs: "release"`. |
at_block_idrequired | string | null | — |
backfill_job_idrequired | string | null | The backfill that started it (`job_…`; publish's `backfill_count`), or null for a run its trigger or a manual enroll started. Filter with `?backfill=`, cancel one backfill's runs with POST …/runs/cancel `backfill`. |
started_atrequired | string | — |
completed_atrequired | string | null | — |
automationrequired | object | The automation this run belongs to, as it is now. |
trigger_node_idrequired | string | — |
current_node_idrequired | string | null | A live run's block now: the one it waits on, else the last one it ran. Null once the run ended. |
failed_node_idrequired | string | null | The block a failed run stopped at. |
waitingrequired | object | null | Where a live run is parked, and until when or for what. Null when it isn't waiting or has ended. |
steps_executedrequired | integer | — |
action_steps_executedrequired | integer | Steps that count toward the run's step budget (sends, updates, webhooks). |
billedrequired | boolean | The run was billed (its first action step ran). |
triggerrequired | object | null | The event that started the run, frozen at enrollment. |
definitionrequired | object | null | The graph of the version this run runs on (name blocks from it, not from the current draft). |
stepsrequired | object[] | — |
200401403404