---
title: "Cancel Workflow"
method: DELETE
path: "/agents/workflows/{workflow_id}"
tags: ["agentWorkflows"]
---

# Cancel Workflow

`DELETE /agents/workflows/{workflow_id}`

Cancel a running workflow.

## Path parameters

- `workflow_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

Successful Response

- WorkflowCancelResponse — Response from cancelling a workflow.
  - `workflow_id` string, required — Workflow ID
  - `cancelled_at` string, date-time, required — Timestamp when cancellation was requested

## Other responses

- `401` — Authentication failed or no valid API key provided.
- `403` — Forbidden
- `404` — Workflow not found
- `409` — Workflow cannot be cancelled
- `422` — Validation Error
- `500` — Failed to cancel workflow

---

[API](https://skmtc.net/markup/apis/api-reference.md) · [All operations](https://skmtc.net/markup/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/markup/api-reference/revisions/8e28e770c55d/schema)
