# Cancel Campaign

Canonical: https://docs.bluehola.com/docs/messaging/post-v1-broadcasts-id-cancel
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--post">POST</span><code class="endpoint-path">/v1/broadcasts/{id}/cancel</code></div>

Cancel a campaign and void every recipient not yet dispatched to, all at once. Cannot be undone.

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers, with scope `messages:send`. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Parameters

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `id` | path | Yes | string | The broadcast campaign ID, `bc_...` |

## Response

| Status | Description |
| --- | --- |
| `200` | OK |
| `4xx` | Client error |

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

## Notes

Returns `canceledRecipients` (the number of pending recipients voided at that moment). Messages already dispatched cannot be recalled — WhatsApp has no unsend endpoint, so those messages are still delivered as scheduled and are still charged.

Cancellation takes effect before the dispatcher's **next** message: the dispatcher re-reads the campaign status before sending each message, so recipients claimed in the current round but not yet sent are voided right away (they will not receive anything after the cancel). The only window is the one message being handed to the send pipeline at the moment of cancellation. So besides `canceledRecipients`, a very small number of recipients in `dispatching` may turn `canceled` over the next few seconds; rely on the `dispatch` counts from GET /v1/broadcasts/{id}. Cancellation is final and cannot be resumed; to send to the remaining recipients, create a new campaign.
