---
title: "List the caller's Automation runs in a time range"
method: GET
path: "/v1/automation-runs"
tags: ["Automations"]
---

# List the caller's Automation runs in a time range

`GET /v1/automation-runs`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/automation-runs`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Den schedules Automations and keeps durable run history. A Desktop Automation runs on any of the owner's connected desktops (one pinned to a workspace, on a desktop that has it); a Cloud Automation runs in OpenWork Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OpenWork Connect integrations. Deactivation stops future runs but does not cancel a run already in progress. Returns runs of every Automation the caller owns whose scheduled time (else start, else creation) falls in [from, to), for calendar views. At most 45 days per request.

## Query parameters

- `from` integer, required
- `to` integer, required
- `cursor` string
- `limit` integer

## Response `200`

Runs in the range returned.

- AutomationRunRange
  - `items` AutomationRun[], required
    - `id` string, required
    - `automationId` string, required
    - `revisionId` string, required
    - `trigger` 'scheduled' | 'recovery' | 'manual', required
    - `scheduledFor` integer, nullable, required
    - `idempotencyKey` string, required
    - `status` 'queued' | 'claimed' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'skipped', required
    - `leaseOwner` string, nullable, required
    - `leaseExpiresAt` integer, nullable, required
    - `heartbeatAt` integer, nullable, required
    - `attemptCount` integer, required
    - `executionTarget` 'desktop' | 'cloud', required
    - `executionThread` AutomationExecutionThread, nullable, required
      - `id` string, required
      - `threadKind` 'automation', required
      - `executionLocation` 'desktop' | 'cloud', required
      - `automationId` string, required
      - `automationRunId` string, required
      - `engineKind` string, required
      - `nativeThreadId` string, nullable
      - `workspaceId` string, nullable
    - `providerId` string, required
    - `modelId` string, required
    - `modelVariant` string, nullable
    - `startedAt` integer, nullable, required
    - `finishedAt` integer, nullable, required
    - `error` AutomationError, nullable, required
      - `code` 'owner_membership_lost' | 'model_access_lost' | 'provider_unavailable' | 'connect_access_unavailable' | 'openwork_web_access_required' | 'execution_runtime_unavailable' | 'connection_action_required' | 'execution_failed' | 'execution_timed_out' | 'runner_unavailable' | 'cancelled' | 'lease_lost' | 'internal_error', required
      - `message` string, required
      - `retryable` boolean, required
    - `resultSummary` string, nullable, required
    - `codemodeReceiptId` string, nullable
    - `validatedResult` unknown
    - `triggerContext` AutomationRunTriggerContext, nullable
      - `kind` 'calendar_meeting', required
      - `eventId` string, required
      - `title` string, nullable, required
      - `start` integer, required
      - `end` integer, required
      - `attendeeDomains` string[], required
      - `externalAttendees` integer, required
      - `link` string, nullable, required
    - `usage` AutomationUsage, required
      - `inputTokens` integer, nullable, required
      - `outputTokens` integer, nullable, required
      - `costMicros` integer, nullable, required
    - `createdAt` integer, required
    - `updatedAt` integer, required
  - `nextCursor` string, nullable, required

## Other responses

- `400`: Invalid request.
- `401`: Sign-in required.

## Changes

- **2026-11-05** `785431157781`: 1 warning
  - added the new `connection_action_required` enum value to the `items/items/error/anyOf[#/components/schemas/AutomationError]/code` response property for the response status `200`
- **2026-10-27** `6f2af7014503`: 1 info
  - added the optional property `items/items/triggerContext` to the response with the `200` status
- **2026-10-23** `c93387179b31`: 1 breaking, 2 info
  - the response property `nextCursor` became nullable for the status `200`
  - response property `details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
  - response property `nextCursor` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
- **2026-10-08** `5e65f24df46a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/automation-runs/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
