---
title: "Cancel a running or waiting workflow run"
method: POST
path: "/api/workflow-runs/{id}/cancel"
tags: ["Workflows"]
---

# Cancel a running or waiting workflow run

`POST /api/workflow-runs/{id}/cancel`

## Path parameters

- `id` string, required

## Request body

- object
  - `reason` string

## Response `200`

Run cancelled

## Other responses

- `400` — Cannot cancel

---

[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.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
