---
title: "Cancel a campaign"
method: POST
path: "/v1/campaigns/{id}/cancel"
tags: ["Campaigns"]
---

# Cancel a campaign

`POST /v1/campaigns/{id}/cancel`

## Request

- Base URL: `https://api.volanea.com`
- URL: `https://api.volanea.com/v1/campaigns/{id}/cancel`
- Auth: HTTP bearer

Stops a scheduled or in-flight campaign; remaining recipients are skipped.

## Path parameters

- `id` string, required

## Response `200`

The cancelled campaign.

- Campaign
  - `campaignId` string, required
  - `projectId` string
  - `name` string, required
  - `subject` string, required
  - `previewText` string, nullable: Preheader — the preview line inboxes show after the subject. Injected as a hidden block at the top of the body at send time.
  - `body` string, required
  - `bodyBlocks` union: The visual editor's design `body` was compiled from — a JSON string of the GrapesJS project (or a legacy block array/object), stored so the editor can reopen it. Ignored when sending — only `body` is delivered.
    - string
    - object
  - `fromName` string, nullable
  - `fromEmail` string, email, required
  - `replyTo` string, email, nullable: Becomes the Reply-To header when set.
  - `status` 'draft' | 'scheduled' | 'sending' | 'sent' | 'cancelled', required
  - `audience` 'all' | 'segment' | 'filter', required
  - `segmentId` string, nullable
  - `filter` SegmentConditions: Nested condition tree evaluated against contacts, their custom `data`, and their activity.
    - `logic` 'and' | 'or', required
    - `groups` object[], required
      - `filters` object[], required
        - `field` string, required: `email`, `subscribed`, `locale`, `createdAt`, `data.<key>`, `event.<name>`, `email.opened`, …
        - `operator` string, required: `equals`, `notEquals`, `contains`, `notContains`, `greaterThan`, `lessThan`, `exists`, `notExists`, `within`, `notWithin`, `triggered`, `notTriggered`, …
        - `value` union
          - string
          - number
          - boolean
        - `days` integer: Time window (days) for activity operators.
  - `abSubjectB` string, nullable
  - `abSamplePct` integer, nullable
  - `abDecideAt` string, date-time, nullable
  - `abWinner` 'a' | 'b' | 'null', nullable
  - `scheduledFor` string, date-time, nullable
  - `sentAt` string, date-time, nullable
  - `totalRecipients` integer
  - `delivered` integer
  - `opened` integer
  - `clicked` integer
  - `bounced` integer
  - `complained` integer
  - `unsubscribed` integer
  - `createdAt` string, date-time, required

## Other responses

- `401`: Missing or invalid API key.
- `404`: Not found.
- `409`: Not cancellable in its current state (`invalid_state`).
- `422`: Request validation failed (code `validation_error`, 422).

---

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