---
title: "Cancel a run by id"
method: POST
path: "/v1/runs/{run_id}/cancel"
tags: ["Runs"]
---

# Cancel a run by id

`POST /v1/runs/{run_id}/cancel`

Cancel a run (task or workflow)

## Path parameters

- `run_id` string, required — The id of the task run or the workflow run to cancel.

## Headers

- `x-api-key` string, nullable — Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-09** `e5a0a7c3a5c6` — 2 info
  - api tag `Runs` added
  - api tag `Agents` removed
- **2026-06-08** `3a3616091b66` — 7 info
  - api tag `Agents` added
  - api tag `Agent` removed
  - api tag `Workflows` removed
  - `header` request parameter `x-api-key` list-of-types was widened by adding types `null`
  - …3 more
- **2026-02-04** `a8899e7707c4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2/changes/v1/runs/:run_id/cancel/post.md)

---

[API](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2.md) · [All operations](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/skyvern-ai/apis/skyvern-api-2/revisions/b149a26710ba?raw)
