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

# Cancel Campaign

> Cancel a scheduled or in-flight campaign.

Cancels an upcoming scheduled campaign or halts in-flight queued batches.

### Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the campaign to cancel.
</ParamField>

### Response

<ResponseField name="data" type="object">
  <ResponseField name="id" type="string">The campaign ID.</ResponseField>
  <ResponseField name="status" type="string">The updated status (`cancelled`).</ResponseField>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.mailofly.com/api/v1/campaigns/cmp_123/cancel \
    -H "Authorization: Bearer mf_live_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "id": "cmp_123",
      "status": "cancelled"
    }
  }
  ```
</ResponseExample>


## Related topics

- [Cancel a Broadcast](/guides/sending/cancel-a-broadcast.md)
- [Cancel Email](/api/emails/cancel-email.md)
- [MCP Server Guides](/guides/ai/mcp-ai-guides.md)
- [MCP Tools Reference](/mcp-server/tools.md)
- [Create Campaign](/api/campaigns/create-campaign.md)
