---
title: "Cancel a workflow"
method: POST
path: "/workflow/{id}/cancel"
tags: ["Workflow"]
---

# Cancel a workflow

`POST /workflow/{id}/cancel`

## Request

- Base URL: `https://circleci.com/api/v2`
- URL: `https://circleci.com/api/v2/workflow/{id}/cancel`
- Auth: one of:
  - API key in header `Circle-Token`
  - HTTP bearer
  - HTTP basic
  - API key in query parameter `circle-token`

Cancels a running workflow.

## Path parameters

- `id` string, uuid, required

## Response `202`

A confirmation message.

- object: message response
  - `message` string, required: A human-readable message

## Other responses

- `default`: Error response.

---

[API](https://skmtc.dev/circleci/apis/circleci-api.md) - [All operations](https://skmtc.dev/circleci/apis/circleci-api/llms.txt) - [OpenAPI document](https://skmtc.dev/circleci/apis/circleci-api/revisions/b9c0e0c24058?raw)
