---
title: "Cancel Execution"
method: POST
path: "/api/workflows/{id}/executions/{executionId}/cancel"
tags: ["Workflows"]
---

# Cancel Execution

`POST /api/workflows/{id}/executions/{executionId}/cancel`

Cancel a running workflow execution. Only effective for executions that are still in progress.

## Path parameters

- `id` string, required
- `executionId` string, required

## Response `200`

Execution was successfully cancelled.

- object
  - `success` boolean — Whether the cancellation was successful.
  - `executionId` string — The ID of the cancelled execution.

## Other responses

- `401` — Invalid or missing API key. Ensure the X-API-Key header is set with a valid key.
- `404` — The requested resource was not found. Verify the ID is correct and belongs to your workspace.

---

[API](https://skmtc.dev/simstudioai/apis/sim-api.md) · [All operations](https://skmtc.dev/simstudioai/apis/sim-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/simstudioai/sim-api/revisions/66a471c5b1df/schema)
