> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nedzo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel a run

> Stop a run that is still going or has not started.

> [!NOTE]
>
> This endpoint is for the VIP plan only. Other plans get a `403`. See [Plan access](https://docs.nedzo.ai/api-reference/introduction.md#plan-access).

Stop a run that is still going or has not started. It answers with the run's `id`, `workflowId`, `status` and `completedAt`. A run that is waiting, or has finished, gets `409`.

## Path Parameters

**id** `string` *required*

The workflow's id.

**runId** `string` *required*

The run's id.

```bash cURL theme={null}
curl -X POST "https://api.nedzo.ai/v1/workflows/123e4567-e89b-12d3-a456-426614174000/runs/623e4567-e89b-12d3-a456-426614174000/cancel" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json Response theme={null}
{
  "id": "623e4567-e89b-12d3-a456-426614174000",
  "workflowId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "cancelled",
  "completedAt": "2026-10-11T09:05:00Z"
}
```

## Errors

| Status | When |
| - | - |
| `400` | The workflow id or run id is not a valid UUID. |
| `402` | The account has no plan, or its subscription is not active. |
| `403` | Your plan is not VIP. |
| `404` | No workflow or run has this id, or it is not in this key's scope. |
| `409` | The run is waiting or has finished, so it can't be cancelled. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.