# List automation runs (/docs/api-reference/list_automation_runs)

`GET /v1/automations/{automation_id}/runs` · operation `list_automation_runs`

Lists an automation's runs, newest first: why it ran, how it ended (succeeded, nothing_new, waiting_approval, failed), a short summary, and the SMB chat it ran in (chat_id).

**Sign-in:** a signed-in person's access token (`Authorization: Bearer …`), which AI apps get through MCP sign-in; or a Workspace API key in the `X-SMB-API-Key` header.

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `automation_id` | string | yes |  |

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `after` | string | no | next_cursor from the previous page. |
| `limit` | integer | no |  |

### Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `SMB-Workspace-Id` | string (uuid) | yes | Workspace where this operation runs. Required for user tokens and Workspace API keys. |

### Response

**200** Successful authorized response.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object | yes |  |
| `data[].id` | string | yes |  |
| `data[].trigger` | one of `schedule`, `event`, `manual` | yes |  |
| `data[].scheduled_for` | string or null | yes |  |
| `data[].event_id` | string or null | yes |  |
| `data[].status` | one of `queued`, `starting`, `running`, `waiting_approval`, `succeeded`, `nothing_new`, `failed`, `skipped` | yes |  |
| `data[].chat_id` | string (uuid) or null | yes |  |
| `data[].summary` | string or null | yes |  |
| `data[].error` | string or null | yes |  |
| `data[].created_at` | string | yes |  |
| `data[].started_at` | string or null | yes |  |
| `data[].finished_at` | string or null | yes |  |
| `next_cursor` | string or null | yes |  |
| `request_id` | string | yes |  |

### Errors

- `400` The request is invalid.
- `401` Authentication is required.
- `403` The caller is not authorized.
- `404` The resource was not found.
- `409` The resource revision or idempotency input conflicts.
- `413` The request body is too large.
- `415` The request must be JSON.
- `422` Required evidence is missing.
- `429` Rate limit reached; honor Retry-After.
- `500` The request could not be completed.
- `502` A dependency returned an invalid response.
- `503` The service is temporarily unavailable.

### Example

```bash
curl --request GET "https://api.smb.co/v1/automations/$AUTOMATION_ID/runs" \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header "SMB-Workspace-Id: $WORKSPACE_ID"
```