---
title: "List all workflows"
method: GET
path: "/api/workflows"
tags: ["Workflows"]
---

# List all workflows

`GET /api/workflows`

Returns workflows WITHOUT the heavy `definition` (the full DAG) by default — the list view only needs a `nodeCount`, which is included. Pass `fields=full` to restore `definition` + trigger config. Fetch the full workflow via `GET /api/workflows/{id}`.

## Query parameters

- `enabled` 'true' | 'false'
- `consecutiveErrorsMin` integer, nullable
- `lastRunStatus` 'running' | 'waiting' | 'completed' | 'failed' | 'skipped' | 'cancelled'
- `key` string — Non-unique asset directory namespace (for example shared/ or personal/<user-id>/drafts/). Runtime write boundaries normalize and validate the canonical form.
- `keyPrefix` string — Non-unique asset directory namespace (for example shared/ or personal/<user-id>/drafts/). Runtime write boundaries normalize and validate the canonical form.
- `fields` 'full' | 'slim'

## Response `200`

Workflow list

## Changes

- **2026-07-11** `f1022d5edb0d` — 2 info
  - added the new optional `query` request parameter `key`
  - added the new optional `query` request parameter `keyPrefix`
- **2026-07-08** `13bd92bf5f04` — 3 info
  - added the new optional `query` request parameter `consecutiveErrorsMin`
  - added the new optional `query` request parameter `enabled`
  - added the new optional `query` request parameter `lastRunStatus`
- **2026-07-02** `0c910612f9ac` — 5 warning
  - deleted the `query` request parameter `consecutiveErrorsMin`
  - deleted the `query` request parameter `enabled`
  - deleted the `query` request parameter `key`
  - deleted the `query` request parameter `keyPrefix`
  - …1 more

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/workflows/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/92a1dcbd2fc7/schema)
