---
title: "Campaigns API"
description: "One-to-many sends to a segment or an inline recipient list."
url: https://www.unitpost.com/docs/email/campaigns
section: "Email API reference"
updated: 2026-11-17
---
# Campaigns API

> One-to-many sends to a segment or an inline recipient list. Draft, validate, schedule, send, pause, resume, and cancel — with a pre-send report that catches problems before anything goes out.

Full schemas: [OpenAPI 3.1](https://www.unitpost.com/api/v1/openapi.json). HTML reference: https://www.unitpost.com/docs/email/campaigns.

## Operations

### `GET /api/v1/email/campaigns`

List campaigns

Retrieve a list of your campaigns, cursor-paginated. Each row is a reference to one campaign and its current status (`draft`, `scheduled`, `sending`, `sent`, …). Use a campaign's `id` with [Retrieve a campaign](https://www.unitpost.com/docs/email/get-email-campaigns-id) for the full record, or with [List sent emails](https://www.unitpost.com/docs/email/get-email) (`?campaign_id=`) to see the individual emails it produced. Deleted (archived) campaigns are hidden; pass `?archived=true` to list only archived ones, which can be restored for 30 days. Requires the `campaigns:read` capability.

Reference: https://www.unitpost.com/docs/email/get-email-campaigns ([Markdown](https://www.unitpost.com/docs/email/get-email-campaigns.md))

### `POST /api/v1/email/campaigns`

Create a campaign

Create a campaign in `draft`. Target either a saved segment (`segment_id`, see [Create a segment](https://www.unitpost.com/docs/platform/post-segments)) or an inline `recipients` list of up to 5,000 addresses (a list you keep in your own system needs no import: the addresses become contacts, so an unsubscribe is remembered), and optionally scope it to a subscription topic (`topic_id`) so contacts who opted out of that topic are skipped automatically. Content comes from a published `template_id` (campaigns have no inline `html`/`text`). Set `scheduled_at` (ISO 8601 with `Z` or an offset such as `2026-10-27T08:00:00-07:00`; stored and returned in UTC; inside your plan's scheduling window, at most 90 days) to save a send time. Without one, or once it has passed, the campaign goes out the moment you send it (validate warns `SCHEDULE_PASSED`). Nothing is sent yet — edit the draft with [Update a campaign](https://www.unitpost.com/docs/email/patch-email-campaigns-id), check it with [Validate a campaign](https://www.unitpost.com/docs/email/get-email-campaigns-id-validate), then launch it with [Send a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-send). Requires the `campaigns:write` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns.md))

### `GET /api/v1/email/campaigns/{id}`

Retrieve a campaign

Retrieve a single campaign by `id`, including its status, targeting, content references, and schedule. To see the individual emails a sent campaign produced, filter [List sent emails](https://www.unitpost.com/docs/email/get-email) by `campaign_id`; for a pre-send readiness report, use [Validate a campaign](https://www.unitpost.com/docs/email/get-email-campaigns-id-validate). Requires the `campaigns:read` capability.

Reference: https://www.unitpost.com/docs/email/get-email-campaigns-id ([Markdown](https://www.unitpost.com/docs/email/get-email-campaigns-id.md))

### `PATCH /api/v1/email/campaigns/{id}`

Update a campaign

Edit a campaign while it's still in `draft` (edits after that return `409`; unschedule a scheduled one first with [Unschedule a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-unschedule)). Change its `name`, `subject`, `from`, `preview_text`, `template_id` or `segment_id` (a template or segment gets create's checks: this workspace's, published, not archived). A value equal to the draft's is no edit, so you can send back what you read. Beyond content and targeting, you can: send `archived` to archive/restore it; set `variable_fallbacks` (fill-only per-variable defaults) and/or `excluded_contact_ids` to resolve a send blocked by missing variables — the API equivalent of the dashboard's pre-send fix; set `topic_id` to scope it to a subscription topic (or `null` to clear); set `open_tracking`/`click_tracking` (tri-state; `null` inherits the template/domain default); and set or clear (`null`) the saved `scheduled_at` (a misnamed time key is a `422`). Other keys are ignored. See what's blocking a send with [Validate a campaign](https://www.unitpost.com/docs/email/get-email-campaigns-id-validate). Requires the `campaigns:write` capability.

Reference: https://www.unitpost.com/docs/email/patch-email-campaigns-id ([Markdown](https://www.unitpost.com/docs/email/patch-email-campaigns-id.md))

### `DELETE /api/v1/email/campaigns/{id}`

Delete a campaign

Archive a campaign that's in `draft` or a terminal state (sent, canceled, failed): it leaves the list and is permanently deleted after 30 days. Restore it before then with `PATCH { "archived": false }`. A campaign that's mid-flight can't be archived — stop it first with [Cancel a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-cancel). Requires the `campaigns:write` capability.

Reference: https://www.unitpost.com/docs/email/delete-email-campaigns-id ([Markdown](https://www.unitpost.com/docs/email/delete-email-campaigns-id.md))

### `POST /api/v1/email/campaigns/{id}/send`

Send a campaign

Validate a `draft` campaign and then send it now or schedule it. `scheduled_at` in the body schedules it for that time (ISO 8601 with `Z` or an offset; in the future, inside your plan's scheduling window); `null` sends it now; omit it to use the draft's saved `scheduled_at` while that is still in the future — **otherwise the campaign is sent immediately** (except right after a dashboard Unschedule, which cleared its time: then it answers `409` with `details[].code` `send_time_required` and sends nothing, so name the time or pass `null`). The response's `scheduled_at` is the resolved time in UTC (`null` when it is sending now). A misnamed time field (`scheduledAt`, `send_at`, `deliver_at`, …) is a `422` naming `scheduled_at`, and a body that isn't JSON (a form-encoded one included) is a `400`; nothing is sent in either case. Other fields are ignored and a JSON `null` body means no options. If anything blocks the send (unverified domain, missing template variables, empty audience, …) you get a `409` with each blocking reason itemized in `error.details[]` (`code` is the reason, as in the validate report's `blockers[].code`). To see the full pre-send report without attempting a send, use [Validate a campaign](https://www.unitpost.com/docs/email/get-email-campaigns-id-validate); fix variable issues via [Update a campaign](https://www.unitpost.com/docs/email/patch-email-campaigns-id). A launched campaign can be [paused](https://www.unitpost.com/docs/email/post-email-campaigns-id-pause) or [canceled](https://www.unitpost.com/docs/email/post-email-campaigns-id-cancel), and a scheduled one [rescheduled](https://www.unitpost.com/docs/email/post-email-campaigns-id-reschedule). Requires the `campaigns:send` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-send ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-send.md))

### `POST /api/v1/email/campaigns/{id}/cancel`

Cancel a campaign

Cancel a `draft`, `scheduled`, or `sending` campaign. Cancelation is terminal — the campaign can't be restarted afterwards. Messages already sent to recipients are not recalled. If you only want to stop temporarily, use [Pause a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-pause) instead. Requires the `campaigns:send` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-cancel ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-cancel.md))

### `POST /api/v1/email/campaigns/{id}/pause`

Pause a campaign

Pause a `scheduled` or `sending` campaign. A paused send stops cleanly between recipients — already-sent messages are untouched, and no partial email is ever produced. Continue where it left off with [Resume a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-resume), or stop it for good with [Cancel a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-cancel). Requires the `campaigns:send` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-pause ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-pause.md))

### `POST /api/v1/email/campaigns/{id}/unschedule`

Unschedule a campaign

Move a `scheduled` campaign (or one `paused` before it started sending) back to `draft`, same id, so you can edit it. Content, audience and overrides are kept; the saved send time is cleared, so the next [Send a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-send) needs an explicit `scheduled_at` (`409` `send_time_required` without one). A campaign that started sending can't be unscheduled: cancel it and [duplicate](https://www.unitpost.com/docs/email/post-email-campaigns-id-duplicate) it (the copy goes to the whole segment again, including people the first run reached, unless you set `excluded_contact_ids`). No body; any key is a `422`. Requires the `campaigns:send` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-unschedule ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-unschedule.md))

### `GET /api/v1/email/campaigns/stats`

Results for several campaigns

The same numbers as [Campaign results](https://www.unitpost.com/docs/email/get-email-campaigns-id-stats) for up to 100 campaigns in one read: `ids`, comma-separated. An id that isn't one of this workspace's email campaigns is left out of `data`, never an error. Pass `ids` once; a repeated or any other query key is a `422`. Requires the `campaigns:read` capability.

Reference: https://www.unitpost.com/docs/email/get-email-campaigns-stats ([Markdown](https://www.unitpost.com/docs/email/get-email-campaigns-stats.md))

### `GET /api/v1/email/campaigns/{id}/stats`

Campaign results

A campaign's results: delivered, unique opens and clicks, unsubscribes, bounces, complaints and their rates, recipients, and who didn't receive it. Open and click rates are `null` when that tracking was off; every rate is `null` until something was sent. Old messages are cleaned up after your plan's retention window; their counts are kept (`source`). Requires the `campaigns:read` capability.

Reference: https://www.unitpost.com/docs/email/get-email-campaigns-id-stats ([Markdown](https://www.unitpost.com/docs/email/get-email-campaigns-id-stats.md))

### `GET /api/v1/email/campaigns/{id}/recipients`

List who a campaign would reach

Who the campaign would reach if sent now, one row per segment member, by the send's own rule: `sendable`, `missing_data` (a required variable has no value), `suppressed` or `excluded`, with the reason. The numbers of [Validate a campaign](https://www.unitpost.com/docs/email/get-email-campaigns-id-validate), member by member. Rows run in contact-id order: pass `next_cursor` as `after` for the next page. A page can hold fewer rows than `limit` while `has_more` is true (a rare status in a big segment is walked in bounded steps). Rows name contacts, so this also requires `contacts:read`. Requires the `campaigns:read` capability.

Reference: https://www.unitpost.com/docs/email/get-email-campaigns-id-recipients ([Markdown](https://www.unitpost.com/docs/email/get-email-campaigns-id-recipients.md))

### `GET /api/v1/email/campaigns/{id}/quality/affected`

List addresses a quality pause flagged

After an automatic quality pause: the recipients whose message hard-bounced (`hard_bounce`) or drew a spam complaint (`complaint`). They're already suppressed; this is for cleaning the source list. By address, `limit` per page (default and most 10,000); when `has_more`, pass the last row's `email` as `after` for the rest. Take them out of the campaign's segment with [Remove flagged addresses](https://www.unitpost.com/docs/email/post-email-campaigns-id-quality-remove-affected). Requires the `campaigns:read` capability.

Reference: https://www.unitpost.com/docs/email/get-email-campaigns-id-quality-affected ([Markdown](https://www.unitpost.com/docs/email/get-email-campaigns-id-quality-affected.md))

### `POST /api/v1/email/campaigns/{id}/quality/remove-affected`

Remove flagged addresses from the audience

While a campaign is paused for its delivery quality: take every hard-bounced and complained contact out of its static segment. It edits a reusable segment for good. Each removal records its activity and fires `segment.left` (the first at once, the rest within a few minutes); a repeat removes nothing. A campaign that isn't paused for quality, or a filter (dynamic) segment, is a `409` (a filter's matches can't be removed one by one, and they're suppressed anyway). It doesn't resume the campaign. No body. Requires the `segments:write` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-quality-remove-affected ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-quality-remove-affected.md))

### `POST /api/v1/email/campaigns/{id}/quality/request-review`

Request a review for a paused campaign

When a campaign the delivery-quality check paused again needs our team's review before it can resume ([Resume a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-resume) answers `409 review_required`): ask for that review. Our team is notified once a day per campaign; a repeat answers `already_requested: true` and notifies no one. A campaign that isn't waiting for a review is a `409`, and so is one paused while our team reviews the whole account (`resume: account_review`). No body. Requires the `campaigns:send` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-quality-request-review ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-quality-request-review.md))

### `POST /api/v1/email/campaigns/{id}/duplicate`

Duplicate a campaign

Copy a campaign into a new `draft`. Only configuration is copied (name, template, segment, sender, subject, preview text, topic, tracking overrides, fallbacks, exclusions), never the send time or status, and every create check runs again (template published, segment not archived, domain, limits). Optional `name` for the copy; any other key is a `422`. Pass an `Idempotency-Key` so a retry returns the same copy instead of making another. Requires the `campaigns:write` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-duplicate ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-duplicate.md))

### `POST /api/v1/email/campaigns/{id}/resume`

Resume a campaign

Resume a `paused` campaign. Sending continues with the recipients that hadn't been reached yet — only them: contacts who joined the segment after the campaign started are not added, and anyone already delivered to is skipped, so nobody receives the campaign twice. After an automatic quality pause (`pause_reason.code` `hard_bounce_rate`, `complaint_rate` or `quality_review`) the quality check measures only sends made after the resume. A campaign whose `scheduled_at` is still in the future waits for it; otherwise it sends immediately. Resume runs the same checks as [Send a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-send) and answers with the same errors; the campaign stays `paused` when one fails. Pause a send with [Pause a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-pause). Requires the `campaigns:send` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-resume ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-resume.md))

### `POST /api/v1/email/campaigns/{id}/reschedule`

Reschedule a campaign

Move a `scheduled` campaign to a new send time: `scheduled_at` in ISO 8601 with `Z` or an offset, in the future and inside your plan's scheduling window; the response returns it in UTC (a time without a timezone is still read as UTC, deprecated). A `draft` is scheduled with [Send a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-send) instead. Only campaigns that haven't started sending can be rescheduled — once a send is in flight, [pause](https://www.unitpost.com/docs/email/post-email-campaigns-id-pause) or [cancel](https://www.unitpost.com/docs/email/post-email-campaigns-id-cancel) it instead. Requires the `campaigns:send` capability.

Reference: https://www.unitpost.com/docs/email/post-email-campaigns-id-reschedule ([Markdown](https://www.unitpost.com/docs/email/post-email-campaigns-id-reschedule.md))

### `GET /api/v1/email/campaigns/{id}/validate`

Validate a campaign

Run a non-mutating pre-send check and get the full readiness report: how many contacts will receive the campaign (`sendable`), how many are suppressed or excluded, which contacts are missing template variables, `variable_coverage[]` per variable (`missing_for_all`: a `variable_fallbacks` default is required to send; otherwise a default is optional and only fills the blanks), `blockers`, `warnings`, and a final `can_send` verdict. Nothing is sent or changed. Show the user `sendable`, the blockers and the warnings before sending. Fix reported variable gaps with [Update a campaign](https://www.unitpost.com/docs/email/patch-email-campaigns-id) (`variable_fallbacks` / `excluded_contact_ids`), then launch with [Send a campaign](https://www.unitpost.com/docs/email/post-email-campaigns-id-send). Requires the `campaigns:read` capability.

Reference: https://www.unitpost.com/docs/email/get-email-campaigns-id-validate ([Markdown](https://www.unitpost.com/docs/email/get-email-campaigns-id-validate.md))
