---
title: "Get an automation run"
method: GET
path: "/automations/{automationId}/runs/{runId}"
tags: ["Automations"]
---

# Get an automation run

`GET /automations/{automationId}/runs/{runId}`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/automations/{automationId}/runs/{runId}`
- Auth: none declared

Get a single automation run by ID.

## Path parameters

- `automationId` string, uuid, required: Automation ID.
- `runId` string, uuid, required: Automation run ID.

## Query parameters

- `projectId` string, uuid: Project that owns the automation. Auto-filled from CLI and SDK context when omitted.

## Response `200`

OK

- object
  - `run` object, required
    - `id` string, uuid, required
    - `automationRunKey` string, required
    - `status` 'running' | 'succeeded' | 'failed' | 'timed_out' | 'cancelled', required
    - `startedAt` string, date-time, required
    - `completedAt` string, date-time, nullable, required
    - `durationMs` integer, nullable, required
    - `exitCode` integer, nullable, required
    - `scheduledAt` string, date-time, nullable, required: When the run was scheduled to start, if known.
    - `dueAt` string, date-time, nullable, required: When the run became due, if known.
    - `errorMessage` string, nullable, required: Failure detail for the run, if it failed or timed out.
    - `automationId` string, uuid, required: Automation that owns this run.

---

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