---
title: "Cancel an execution"
method: POST
path: "/workflows/executions/{id}/cancel"
tags: ["Workflow executions"]
---

# Cancel an execution

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

## Request

- Base URL: `https://api.nullplatform.com`
- URL: `https://api.nullplatform.com/workflows/executions/{id}/cancel`
- Auth: HTTP bearer

Cancels a running execution.

## Path parameters

- `id` string, required

## Request body

- object
  - `reason` string

## Response `200`

The cancellation was accepted.

- object
  - `execution` Execution
    - `id` string, required
    - `workflowId` string, required
    - `revision` integer, required
    - `aliasName` string
    - `organizationId` string
    - `correlationKey` string: Client-chosen key used to target the execution with signals.
    - `idempotencyKey` string
    - `status` 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'timed_out', required
    - `inputs` object, required: Run inputs. Credential-named keys are masked on reads.
    - `outputs` object
    - `variables` object
    - `error` StepError
      - `code` string, required
      - `message` string, required
      - `details` object
      - `retryable` boolean
    - `parentExecutionId` string: Present on sub-workflow executions.
    - `parentStepId` string
    - `metadata` object
    - `startedAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `completedAt` string, date-time
  - `accepted` true

## Other responses

- `4XX`: Client error. The body says what went wrong: an error `type`, a human-readable `detail`, and, on validation failures, one entry per offending field.
- `5XX`: Unexpected server error.

## Changes

- **2026-09-17** `43b3c1ecdfd8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nullplatform/apis/nullplatform-api/changes/workflows/executions/:id/cancel/post.md)

---

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