---
title: "List runs for a workflow"
method: GET
path: "/api/workflows/{id}/runs"
tags: ["Workflows"]
---

# List runs for a workflow

`GET /api/workflows/{id}/runs`

## Path parameters

- `id` string, required

## Query parameters

- `status` 'running' | 'waiting' | 'completed' | 'failed' | 'skipped' | 'cancelled'
- `limit` integer
- `offset` integer, nullable

## Response `200`

Workflow run list

- union
  - WorkflowRun[]
    - `id` string, uuid, required
    - `workflowId` string, uuid, required
    - `status` 'running' | 'waiting' | 'completed' | 'failed' | 'skipped' | 'cancelled', required
    - `triggerData` unknown
    - `context` object
    - `error` string
    - `createdBy` string
    - `startedAt` string, required
    - `lastUpdatedAt` string, required
    - `finishedAt` string
  - object
    - `runs` WorkflowRun[], required
      - `id` string, uuid, required
      - `workflowId` string, uuid, required
      - `status` 'running' | 'waiting' | 'completed' | 'failed' | 'skipped' | 'cancelled', required
      - `triggerData` unknown
      - `context` object
      - `error` string
      - `createdBy` string
      - `startedAt` string, required
      - `lastUpdatedAt` string, required
      - `finishedAt` string
    - `page` object, required
      - `limit` integer, required
      - `offset` integer, required
      - `total` integer, required
      - `hasMore` boolean, required
      - `nextOffset` integer

## Changes

- **2026-08-19** `5514cdcdbf02` — 2 info
  - added `subschema #1, subschema #2` to the response body `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the response body `anyOf` list for the response status `200`
- **2026-08-07** `06cac6a7c5bc` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-07-29** `174e6599c0ba` — 2 info
  - added the new optional `query` request parameter `limit`
  - added the new optional `query` request parameter `offset`

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/workflows/:id/runs/get.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/e0acd2155cad/schema)
