---
title: "Cancel Workflow Run"
method: POST
path: "/workflows/{workflow_id}/runs/{run_id}/cancel"
tags: ["Workflows"]
---

# Cancel Workflow Run

`POST /workflows/{workflow_id}/runs/{run_id}/cancel`

Cancel a currently executing workflow run, stopping all active steps and cleanup.
**Note:** Complex workflows with multiple parallel steps may take time to fully cancel.

## Path parameters

- `workflow_id` string, required
- `run_id` string, required

## Query parameters

- `session_id` string, nullable — Session ID the run belongs to. Required for non-admin JWT users.

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Workflow or run not found
- `422` — Validation Error
- `500` — Failed to cancel workflow run

---

[API](https://skmtc.dev/agno/apis/agno-api-reference.md) · [All operations](https://skmtc.dev/agno/apis/agno-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agno/agno-api-reference/revisions/5f6149d395d0/schema)
