---
title: "Cancel a workflow execution"
method: POST
path: "/api/v1/workflows/executions/{execution_id}/cancel"
tags: ["Workflows"]
---

# Cancel a workflow execution

`POST /api/v1/workflows/executions/{execution_id}/cancel`

## Request

- Base URL: `https://api.sendly.now`
- URL: `https://api.sendly.now/api/v1/workflows/executions/{execution_id}/cancel`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`
  - OAuth 2 (authorization code, authorization URL `https://app.sendly.now/api/auth/oauth2/authorize`, token URL `https://app.sendly.now/api/auth/oauth2/token`, scopes: `workflows:write`)

Stops one run and stamps it `CANCELLED`. The execution stays queryable — cancelling is a state change, not a delete. Addressed by execution id alone, so a caller holding one from a list does not need to carry the workflow id with it.

Requires the `workflows:write` scope — Create, edit, enable, and delete your automation workflows.

## Path parameters

- `execution_id` string, uuid, required: Workflow execution id.

## Response `200`

Cancelled execution

- WorkflowExecutionV1: One contact's run through a workflow.
  - `completed_at` string, date-time, nullable, required
  - `contact_id` string, uuid, required
  - `current_step_id` string, uuid, nullable, required
  - `exit_reason` string, nullable, required
  - `id` string, uuid, required
  - `started_at` string, date-time, required
  - `status` 'RUNNING' | 'WAITING' | 'COMPLETED' | 'EXITED' | 'FAILED' | 'CANCELLED', required
  - `workflow_id` string, uuid, required

## Other responses

- `401`: `invalid_api_key` or `invalid_session` — missing or invalid credentials.
- `403`: `scope_missing`, `project_access_denied`, or `project_disabled`.
- `404`: `resource_not_found` — no execution with this id in the authenticated project.
- `422`: `validation_error` — query, path, or body parameters did not match the schema.
- `429`: `rate_limited` — see `Retry-After` and the `RateLimit` headers.
- `500`: `internal_error`.

---

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