---
title: "Stop a running workflow"
method: PUT
path: "/v4/workflows/{workflowId}/stop"
tags: ["Workflows"]
---

# Stop a running workflow

`PUT /v4/workflows/{workflowId}/stop`

## Request

- Base URL: `https://api.kadoa.com`
- URL: `https://api.kadoa.com/v4/workflows/{workflowId}/stop`
- Auth: API key in header `x-api-key`

Cancels the active run for the specified workflow. Queued and pending steps are removed from the pipeline; the in-flight step may still complete.

## Path parameters

- `workflowId` string, required

## Response `200`

Workflow stop initiated

- object
  - `message` string

## Other responses

- `400`: No running job found
- `401`: x-api-key missing or not authorized
- `404`: Workflow not found
- `409`: Workflow run cannot be stopped (e.g. during initial Shelly build)

---

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