---
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`

## Request

- Base URL: `https://api.skyvern.com`
- URL: `https://api.skyvern.com/v1/runs/{run_id}/cancel`
- Auth: API key in header `x-api-key`

Cancel a run (task or workflow)

## Path parameters

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

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-20** `539f04093540`: 1 warning, 1 info
  - deleted the `header` request parameter `x-api-key`
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **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

[Operation 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/64479cb160ff?raw)
