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

# Email campaigns

> How to list, open and create an email campaign with the template picker, pause or activate it with a confirmation and launch it, and which rules a launch respects.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/notification/campaigns` (list) and `/{locale}/notification/campaigns/{id}` (detail) |
| Menu | Notifications › Audience › **Campaigns** |
| Role | Notification Admin and Notification Marketing run campaigns; Notification Operator only reads them |
| Permission | `email-campaign:find-all` (list), `:find-one` (detail), `:create`, `:active` (pause and activate), `:launch`; `email-campaign-user:find-all` (recipients) and `email-template:find-all` (template picker) |
| Feature flag | None |
| Last verified | 2026-11-13 against `develop` (`bc2ed8b1f`); roles from the catalogue of PR #2254 |

## What it is for

A campaign is a marketing email sent once to a list of recipients, for example the Club benefits of the month. Here
you create it (name, template, subject and pace), check the recipients an integration loaded, pause it if something
is not ready and launch it. A launch goes through the same rules as any marketing notification: customers who opted
out, suppressed addresses and the frequency cap are skipped.

## How to get there

* Sidebar: **Notifications › Audience › Campaigns**.
* Open a campaign by pressing its name or the arrow at the end of its row.

## What you see

![Campaigns list with three rows: Club Maihue noviembre, code CLUB\_NOVIEMBRE, template CLUB\_MONTHLY, Not launched and Active; Encuesta de satisfacción, Not launched and Paused; Nueva versión de MaihueGO, Launched and Active, launched on 10/22/2026. A New campaign button at the top.](https://mintcdn.com/bbrands/epssQQoY49ybY1H0/images/enterprise-notifications-screens/campaigns/list.en.desktop.webp?fit=max\&auto=format\&n=epssQQoY49ybY1H0\&q=85\&s=bdf79fab3d27dec6193c56237fcfbd87)

The campaign list: one row per campaign, with its status and whether it is active.

| # | Element | What it does |
| - | - | - |
| 1 | Search | "Search by name" |
| 2 | **Add filter** | **Launched** and **Active** (yes or no) |
| 3 | **Name** | Opens the campaign |
| 4 | **Code** / **Template key** | The internal code and the email template it uses |
| 5 | **Status** | **Not launched** or **Launched** |
| 6 | **Active** | **Active** (it can be launched) or **Paused** |
| 7 | **Launched at** / **Created** | When it was launched and created |
| 8 | **New campaign** | Opens the create form |

![Campaign Club Maihue noviembre with Pause and Launch buttons: Summary with Code CLUB\_NOVIEMBRE, Template key CLUB\_MONTHLY, Subject Tus beneficios de noviembre, Pacing 10 messages every 2 s, Status Not launched, Active, and the description; Recipients shows 3 of 3 recipients with their user, variables (coupon and name), Active and Created.](https://mintcdn.com/bbrands/epssQQoY49ybY1H0/images/enterprise-notifications-screens/campaigns/detail.en.desktop.webp?fit=max\&auto=format\&n=epssQQoY49ybY1H0\&q=85\&s=b2e68d49da2c758a2e3807e9e4648ccd)

A campaign that was not launched: summary, recipients and the Pause and Launch buttons.

## Step by step

### Create a campaign

**1. Open the form**

Press **New campaign**. The "Create a campaign" dialog opens.

**2. Name and code**

Type the **Name** (up to 200 characters) and a **Code** (up to 100), for example `CLUB_DICIEMBRE`.

**3. Pick the template**

In **Template** pick one of the active campaign templates. If **Subject** is empty, it fills with the
template's subject; change it if you want.

**4. Set the pace**

**Batch size** (1 to 500, default 10) is how many emails go out together and **Interval (seconds)** (0 to 3600,
default 2) the wait between batches. Add a **Description** if you want (up to 2000 characters).

**5. Create**

Press **New campaign**. You see **Campaign created**: "Add its recipients, then launch it." and the campaign
opens.

![Create a campaign dialog: Name Club Maihue December, Code CLUB\_DICIEMBRE, Template Club: beneficios del mes, Subject Tus beneficios del mes filled from the template, Batch size 10, Interval (seconds) 2, an empty Description, the hint Recipients are loaded after it is created, through an integration, and Cancel and New campaign buttons.](https://mintcdn.com/bbrands/epssQQoY49ybY1H0/images/enterprise-notifications-screens/campaigns/create.en.desktop.webp?fit=max\&auto=format\&n=epssQQoY49ybY1H0\&q=85\&s=3fbeb291c65c0cc687e0a283156f7848)

New campaign: the template comes from a list and fills the subject.

### Load and check the recipients

Recipients are not added from this screen: an integration loads them, each with the variables of its email (for
example, the name and the coupon). The detail shows the first 50 in **Recipients** ("Showing 50 of 1200
recipients."). Check that the count and the variables are right before launching.

### Pause or activate

**1. Pause**

On the detail of a campaign that was not launched, press **Pause**. The dialog "Pause this campaign?" says it
cannot be launched while it is paused. Press **Pause**.

**2. Check**

You see **Campaign updated**: "The campaign is paused and cannot be launched." A notice says "The campaign is
paused. Activate it before launching." and **Launch** is disabled.

**3. Activate again**

Press **Activate** and confirm in "Activate this campaign?". You see "The campaign can be launched."

![Pause this campaign? dialog over the detail of Club Maihue noviembre: The campaign cannot be launched while it is paused. You can activate it again at any time. Cancel and a red Pause button.](https://mintcdn.com/bbrands/epssQQoY49ybY1H0/images/enterprise-notifications-screens/campaigns/pause.en.desktop.webp?fit=max\&auto=format\&n=epssQQoY49ybY1H0\&q=85\&s=e4444dbc84eb75956e4dac2823b6a756)

Pausing asks for a confirmation.

### Launch

**1. Check before launching**

The campaign is **Active**, the recipients are loaded and the template and subject are the right ones. A
campaign launches only once.

**2. Launch**

Press **Launch**. The dialog "Launch this campaign?" reminds you of the pace ("Every pending recipient gets the
email, 10 messages every 2 seconds…"). Press **Launch**.

**3. Read the result**

You see **Campaign launched** with the count, for example "1150 of 1200 recipients queued in 115 batches; 50
skipped for invalid variables or no email."

**4. Follow it**

The detail now says "This campaign was launched. A campaign launches only once." with **See it in
Traceability**, where each recipient's decision shows (queued, skipped for opt-out, suppressed).

![Campaign Nueva versión de MaihueGO with the notice This campaign was launched. A campaign launches only once. See it in Traceability; Summary with Status Launched, Pacing 50 messages every 5 s, Launched at 10/22/2026 and Launched by a user id; Recipients below.](https://mintcdn.com/bbrands/epssQQoY49ybY1H0/images/enterprise-notifications-screens/campaigns/launched.en.desktop.webp?fit=max\&auto=format\&n=epssQQoY49ybY1H0\&q=85\&s=42a2d431f3d8e0a493e27fcaa7b4ec53)

A launched campaign: the notice links to Traceability and the buttons are gone.

## Business rules

| ID | Rule |
| - | - |
| R-01 | Only email: a campaign sends one email per recipient with its template |
| R-02 | A launch is one `marketing.campaign.launched` notification for all pending recipients, so every [marketing rule](https://docs.bbrands.io/enterprise/notifications/catalog/rules.md) applies: opt-out ([preferences](https://docs.bbrands.io/enterprise/notifications/audience/preferences.md)), [suppressions](https://docs.bbrands.io/enterprise/notifications/audience/suppressions.md), frequency cap and quiet hours |
| R-03 | A campaign launches **once**. After that it cannot be paused, activated, edited or launched again |
| R-04 | A paused campaign cannot be launched, from the screen or through the API (409 `campaign-paused`); activate it first |
| R-05 | Pending recipients are those loaded and not sent yet. Recipients whose variables do not fit the template, or who have no email, are skipped and counted in the result |
| R-06 | Pace: email number *n* waits (*n* ÷ batch size, rounded down) × interval seconds. With 10 and 2 seconds, 1,000 recipients take about 200 seconds |
| R-07 | The template must exist: a template key that is not registered is rejected when creating |
| R-08 | Limits: name 200, code 100, subject 300, description 2000 characters; batch 1–500; interval 0–3600 seconds; template key letters, numbers and underscores |
| R-09 | Without `email-template:find-all` the form asks for the **Template key** as text instead of the list |
| R-10 | A launch in which nobody could be queued (every recipient opted out, suppressed or capped) does not count: the campaign stays **Not launched** and can be launched again, for example after lifting suppressions. The next launch evaluates every recipient again |

## States and messages

| State | What you see | Why | What to do |
| - | - | - | - |
| Not launched, active | **Not launched** and **Active**; **Pause** and **Launch** | Ready to launch | Check recipients and launch |
| Paused | **Paused** and "The campaign is paused. Activate it before launching." | Someone paused it | **Activate** when it is ready |
| Launched | **Launched** and "This campaign was launched. A campaign launches only once." | It was launched | Follow it in Traceability |
| Nobody to send | **Nobody can receive the campaign** (warning): "Every recipient opted out, is suppressed or reached their cap. The campaign stays unsent…" | The launch queued nobody | Check the audience or the suppressions and launch again |
| No recipients | "This campaign has no recipients yet." | The integration did not load them | Ask whoever loads the audience |
| No templates | "There are no active campaign templates." | No campaign template is active | Ask the technology team |
| Created | **Campaign created**: "Add its recipients, then launch it." | It was created | Load the recipients |
| Not found | "The campaign does not exist or was deleted." | Wrong address or deleted campaign | Go back to the list |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "Write a name of up to 200 characters." / "Write a code of up to 100 characters." / "Write a subject of up to 300 characters." | Empty or too long | — (on-screen validation) | Fix the field |
| "Pick a template." / "Use only letters, numbers and underscores, up to 100 characters." | No template, or a key with other characters | — | Pick or fix the template |
| "Use a whole number between 1 and 500." / "Use a whole number between 0 and 3600." | Batch or interval out of range | — | Fix the number |
| **The campaign could not be created** · "Some data is not valid…" | The template key does not exist | 400 | Pick a template from the list |
| **The campaign could not be launched** · "A record with that data already exists…" | It was already launched | 409 | Reload: it is launched |
| **The campaign could not be launched** · "Some data is not valid…" | No pending recipients, or every one has invalid variables or no email | 400 | Check the recipients and their variables |
| **The campaign could not be launched** · "A record with that data already exists…" | Someone paused it while you had the page open | 409 `campaign-paused` | Reload and activate it |
| **The campaign could not be updated** · "A record with that data already exists…" | Pausing or activating a launched campaign | 409 | Nothing: a launched campaign does not change |
| "You do not have permission for this action…" | A permission is missing | 403 | Ask for Notification Marketing or Notification Admin ([Roles and permissions](https://docs.bbrands.io/enterprise/notifications/getting-started/roles-and-permissions.md)) |

## Why it works this way

A campaign reaches thousands of customers at once, so it goes out once and at a controlled pace: the pace protects the
email provider's reputation and lets you pause before launching if something is wrong. Launching it as a marketing
notification means a campaign never skips what a customer chose: whoever opted out, or whose address bounced, does
not get it.

## Technical detail

| Aspect | Detail |
| - | - |
| Screens | `frontend/horizon-enterprise/app/components/screens/notification/campaigns/` (`notification-campaigns-screen.tsx`, `notification-campaign-detail-screen.tsx`, `notification-campaign-create-dialog.tsx`, `notification-campaign-utils.tsx`) |
| API | `GET`/`POST /api/v3/email/campaign`, `GET /api/v3/email/campaign/{id}`, `PATCH /api/v3/email/campaign/{id}/active`, `POST /api/v3/email/campaign/{id}/launch`; recipients `GET /api/v3/email/campaign/user` filtered by campaign; templates `GET /api/v3/email/template` |
| Service | `backend/horizon-api/lib/endpoint/email-campaign/` (`email-campaign.service.ts`, `email-campaign.validator.ts`) |
| Traceability | The launch occurrence has the key `campaign:{id}`; **See it in Traceability** searches it. A relaunch after an empty launch uses `campaign:{id}:retry:{previous occurrence}`, so the link opens the first (empty) attempt; search the campaign id to see the later one |
| Empty launch | 422 `campaign-nothing-to-send` with the skip reasons counted (`reasons`), and `is_sended` stays false |
| Texts | `messages/{es,en}.json` › `modules.notification.campaigns` |

## FAQ and support cases

> [accordion] Which role runs campaigns?
>
> Notification Marketing and Notification Admin create, pause and launch them; Notification Operator sees them
> and their recipients; Notification Editor does not open the screen.

> [accordion] The result says 50 were skipped
>
> Those recipients have variables that do not fit the template or no email. Check them in **Recipients**; they
> are not sent later.

> [accordion] Fewer customers got it than were queued
>
> Queued is not sent: in Traceability, some show **Skipped** (**Opted out**, **Frequency cap**) or **Suppressed**.

> [accordion] Can I launch it again for the ones who did not get it?
>
> No. A campaign launches only once; create a new one for that audience.

## Related and history

* [Preferences](https://docs.bbrands.io/enterprise/notifications/audience/preferences.md)
* [Suppressions](https://docs.bbrands.io/enterprise/notifications/audience/suppressions.md)
* [Roles and permissions](https://docs.bbrands.io/enterprise/notifications/getting-started/roles-and-permissions.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |
| 2026-11-12 | Notification Admin, Marketing and Operator open Campaigns (issue #2180) |


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