---
title: "Cancel Workflow"
method: POST
path: "/api/workflows/tasks/{task_id}/cancel"
---

# Cancel Workflow

`POST /api/workflows/tasks/{task_id}/cancel`

## Path parameters

- `task_id` string, required

## Response `200`

Successful Response

- WorkflowCancelResponse
  - `success` boolean, required
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/browser-use/apis/workflow-execution-service.md) · [All operations](https://skmtc.dev/browser-use/apis/workflow-execution-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/browser-use/workflow-execution-service/revisions/83abf377c07c/schema)
