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

# List automation run alerts

`GET /api/v0/automations/{automationId}/run-alerts`

## Request

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

Returns pre-session (session-less) failures for an automation, which Run History cannot surface. Available to the owner, and to every member for an automation shared with the organization (404 otherwise).

## Path parameters

- `automationId` string, required: Automation ID

## Query parameters

- `limit` integer: Maximum number of items to return (1-100)
- `cursor` string: Cursor for pagination

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- ListAutomationRunAlerts200ResponseBody
  - `alerts` object[], required
    - `runId` string, required
    - `failureReason` 'workflow_start_failed' | 'computer_target_missing' | 'template_provision_failed' | 'workflow_failed' | 'computer_not_found' | 'computer_not_active' | 'owner_inactive' | 'computer_missing_external_id' | 'sandbox_resume_failed' | 'compute_limit_exceeded' | 'daemon_unresponsive' | 'session_creation_failed' | 'region_mismatch' | 'invalid_payload_regex' | 'dispatch_skipped' | 'dispatch_failed' | 'dispatch_exception' | 'dispatch_timed_out' | 'automation_files_missing' | 'host_resources' | 'agent_error' | 'prompt_rejected_by_hook' | 'model_timed_out' | 'usage_limit_reached' | 'provider_auth_failed' | 'provider_rate_limited' | 'vercel_rate_limited' | 'provider_error' | 'network_error' | 'mcp_auth_required' | 'mcp_unavailable' | 'no_assistant_response' | 'closed_before_completion' | 'daemon_restarted' | 'host_slept' | 'session_closed_by_user' | 'computer_paused' | 'run_never_completed' | 'missed_schedule' | 'chaining_failed' | 'target_session_unavailable' | 'target_session_moved' | 'target_session_retargeted' | 'target_session_delivery_failed' | 'delivery_interrupted' | 'shared_session_delivery_disabled' | 'cancelled'
    - `errorMessage` string
    - `startedAt` number, required: Unix timestamp, in milliseconds, when the failed run started.
    - `executionLocation` 'local' | 'remote', required
    - `triggerSource` 'scheduled' | 'manual' | 'slack' | 'webhook' | 'automation'
    - `sourceAutomationId` string
    - `sourceRunId` string
  - `events` object[]
    - `eventId` string, required
    - `eventType` 'auto_paused' | 'degraded' | 'skipped', required
    - `occurredAt` number, required: Unix timestamp, in milliseconds, when the transition happened.
    - `reason` string
    - `executionLocation` 'local' | 'remote'
    - `consecutiveFailureCount` number
    - `sourceAutomationId` string
    - `sourceRunId` string
  - `outages` object[]
    - `eventId` string, required
    - `firstMissedSlot` number, required: Unix timestamp, in milliseconds, of the earliest scheduled slot that never ran.
    - `schedule` string, required
    - `missedSlotCount` number
    - `recoveredAt` number: Unix timestamp, in milliseconds, when the outage closed; absent while it is still open.
    - `closedReason` 'recovered' | 'deleted' | 'paused' | 'schedule_changed'
    - `detectedBy` 'recovery' | 'watchdog'
    - `executionLocation` 'local' | 'remote'
  - `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/run-alerts/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)
