---
title: "List runs"
description: "The execution ledger for one automation, newest first. `GET /api/v1/automations/{id}/runs`"
url: https://www.unitpost.com/docs/automations/get-automations-id-runs
section: "Automations API reference"
updated: 2026-12-01
---
# List runs

`GET /api/v1/automations/{id}/runs`

The execution ledger for one automation, newest first. Filter with `status` (a run status, or the groups `live` / `problems`), `block` (the runs at a block now, or that failed at it; each run's `at_block_id`) and `backfill` (the runs one backfill started). Pages like every list: while `has_more`, pass the last run's `id` as `after` for the next (older) page; `before` with the first run's `id` goes back. Runs that started on the same instant are never skipped or repeated. Requires the `automations:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |
| `status` | query | string | no | active \| waiting \| completed \| exited \| goal_met \| failed \| canceled \| live \| problems |
| `block` | query | string | no | A block id: live runs waiting at or about to run that block, and runs that failed at it. |
| `contact_id` | query | string | no | Only this contact's runs (`con_…`). |
| `backfill` | query | string | no | Only the runs one backfill started (its job id, `job_…`). |
| `limit` | query | integer | no | Max rows to return (default 20, max 100). |
| `after` | query | string | no | Next page: the last run's `id` (`run_…`) from the previous page, while `has_more` is true. |
| `before` | query | string | no | Previous page: the first run's `id` (`run_…`). Not with `after`. An ISO 8601 time is also accepted: the runs started before it. |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `id` | string | yes | — |
| `automation_id` | string | yes | — |
| `status` | enum | yes | One of: `active`, `waiting`, `completed`, `exited`, `goal_met`, `failed`, `canceled`. |
| `exit_reason` | string \| null | yes | 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`). |
| `subject` | object | yes | — |
| `version` | integer \| null | yes | — |
| `step_count` | integer | yes | — |
| `held` | boolean | yes | 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_id` | string \| null | yes | — |
| `backfill_job_id` | string \| null | yes | 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_at` | string | yes | — |
| `completed_at` | string \| null | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 200 | A page of runs. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Automation not found. |
| 422 | Unknown status filter or malformed cursor. |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/automations/atm_123/runs' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "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"
    }
  ]
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/automations/get-automations-id-runs
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
