---
title: "List automation runs"
method: GET
path: "/api/v0/automations/{automationId}/runs"
tags: ["Automations"]
---

# List automation runs

`GET /api/v0/automations/{automationId}/runs`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/automations/{automationId}/runs`
- Auth: HTTP bearer

Returns run history for a specific automation (derived from sessions). Available to the owner, and to every member for an automation shared with the organization (404 otherwise); runs whose sessions the caller cannot view are left out.

## Path parameters

- `automationId` string, required: Automation ID

## Query parameters

- `limit` integer: Maximum number of items to return (1-100)
- `cursor` string: Cursor for pagination
- `includeFactoryStandardCredits` boolean: Whether to include Factory Standard Credits. Defaults to true when omitted.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- ListAutomationRuns200ResponseBody
  - `factoryStandardCreditsVisibility` 'visible' | 'hidden' | 'unavailable'
  - `runs` object[], required
    - `sessionId` string, required
    - `runId` string
    - `delivery` object
      - `status` 'pending' | 'delivered' | 'failed'
      - `reason` string
    - `hostId` string, uuid
    - `type` 'create' | 'run'
    - `status` 'idle' | 'pending' | 'running', required
    - `outcome` 'success' | 'failure'
    - `failureReason` string
    - `errorMessage` string
    - `outcomeOverride` object
      - `originalStatus` string, required
      - `changedBy` string, required
      - `note` string
    - `outcomeOverrideRevision` integer
    - `modelFallback` object
      - `requestedModel` string, required
      - `reason` 'custom_model_not_configured' | 'model_not_available_for_org', required
    - `startedAt` number, required: Unix timestamp, in milliseconds, when the run started.
    - `completedAt` number: Unix timestamp, in milliseconds, when the run finished.
    - `title` string
    - `factoryStandardCredits` number
    - `triggerSource` 'scheduled' | 'manual' | 'slack' | 'webhook' | 'automation'
    - `sourceAutomationId` string
    - `sourceRunId` string
  - `pagination` object, required
    - `hasMore` boolean, required: Whether there are more items after this page
    - `nextCursor` string, nullable, required: Cursor to use for the next page, null if no more pages

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `429`: Response for status 429
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-12** `b6a46c415079`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/automations/:automationId/runs/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
