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

# Cancel a workflow run

`POST /v1/workflow-runs/{id}/cancel`

Cancels a running or queued workflow run.

## Path parameters

- `id` string, required

## Response `200`

The run was cancelled.

- object
  - `data` WorkflowRun
    - `id` string
    - `workflowId` string
    - `status` string — Run status, e.g. "queued", "running", "completed", or "failed".
    - `input` object
    - `output` object
    - `createdAt` string, date-time
    - `completedAt` string, date-time

## Other responses

- `401` — Missing or invalid API key credentials.
- `404` — The resource does not exist in your organization.

---

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