> ## 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.

# Preview and test send

> How to see a template with sample data before publishing it and how to send it to yourself.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/notification/catalog/{event}/channels/{channel}`, **Preview** and **Sample data** cards |
| Menu | Notifications › Catalog › **Event catalog** › an event › **Channels** tab › a channel |
| Role | Everyone sees the preview; Notification Admin, Editor and Marketing send tests |
| Permission | `notification-template:find-one` to see; `notification-template:test-send` for **Test send** |
| Feature flag | None |
| Last verified | 2026-11-20 against `develop` (`aed8bd19b`) |

## What it is for

Before publishing it is worth seeing the notification as the customer will. The **Preview** draws it with **Sample
data**, in the language of the chosen tab, and **Test send** really sends it to your email or your phone.

## How to get there

* Open the template from its event's **Channels** tab ([Template editor](https://docs.bbrands.io/enterprise/notifications/templates/editor.md)).
  The preview is at the top of the right column, followed by **Sample data**; the **Test send** button, at the top.

## What you see

![Preview · ES card: Server render with the sample; subject Canjeaste 2x1 en café, sender Club Maihue and preview text; Desktop and Mobile buttons; the rendered email with the heading Cupón canjeado and the link Ver mis cupones.](https://mintcdn.com/bbrands/QwypFRCeLjQDiuVS/images/enterprise-notifications-screens/templates/email-preview.en.desktop.webp?fit=max\&auto=format\&n=QwypFRCeLjQDiuVS\&q=85\&s=da17e51e3c6b782eb99e4f71b0fd658c)

Preview of an email with the sample data, in Desktop mode (sample design).

| # | Element | What it does |
| - | - | - |
| 1 | **Preview · ES** | The language being shown: the tab chosen under **Texts** |
| 2 | Source of the view | "Server render with the sample." or, while you type, "Instant preview with the sample." |
| 3 | **Refresh** | Asks the server for the view again |
| 4 | View per channel | Email: subject, sender, preview text and the email with **Desktop** and **Mobile**. Push: iOS and Android. SMS: segment counter. In-app: the inbox notification |
| 5 | **Sample data** | Example values in JSON format: "Generated from the event data; edit them to try other values." |

## Step by step

### Check how it looks

**1. Pick the language**

Under **Texts**, open the language tab. The preview switches to that language.

**2. Wait or refresh**

The view updates by itself a moment after you stop typing. Press **Refresh** to force it.

**3. Try other values**

In **Sample data** change a value, for example a long merchant name, to see whether the text fits.

### Send yourself a test

**1. Press Test send**

If there are unsaved changes, the draft is saved first.

**2. Check your email or your phone**

You see **Test sent**: "It goes to your own address or devices and is traced with origin user." It arrives in the
chosen tab's language, with the sample data.

## Business rules

| ID | Rule |
| - | - |
| R-01 | The test only reaches your own user: your email, your phone or your devices; never a customer |
| R-02 | The test is a real send: it shows in [**Traceability**](https://docs.bbrands.io/enterprise/notifications/operation/traceability.md) with origin **User** |
| R-03 | For push, you need the app installed with your user and notifications accepted |
| R-04 | The server view is the one that counts: it applies formats, escaping and the brand design |
| R-05 | If the sample data is not valid JSON, there is no preview or test |

## States and messages

| State | What you see | Why | What to do |
| - | - | - | - |
| Instant view | "Instant preview with the sample." | The server view has not arrived yet | Wait or **Refresh** |
| Invalid sample | "The sample data is not valid." | The JSON has a mistake | Fix commas, quotes or braces |
| Long SMS | "Above the limit of N segments" | The rendered text is too long | Shorten it |
| Nothing to show | "Nothing to preview." | The texts are empty | Write the text |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The test could not be sent" | You have no email or device for that channel, or the provider failed | 4xx or 5xx | Check your user (email, app installed) and try again |

## Why it works this way

The preview uses sample data because a template knows no customer until it is sent. The test only goes to you so a
half-finished text never reaches a customer, and it is traced like any send so you can check its delivery.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `templates/editor/template-previews.tsx` and `notification-template-editor-screen.tsx` |
| Preview | `POST /api/v3/notification/template/{id}/version/{n}/preview`, requested 700 ms after you stop typing |
| Test | `POST /api/v3/notification/template/{id}/version/{n}/test-send` |
| Sample | Generated from the event's data schema |

## FAQ and support cases

> [accordion] The test push did not arrive
>
> Check you have the app installed, signed in with your user and notifications accepted. Then find your test in
> [**Traceability**](https://docs.bbrands.io/enterprise/notifications/operation/traceability.md).

> [accordion] Why does the preview email look different from the real one?
>
> The server view uses the real brand design. If you see the instant view, press **Refresh**.

## Related and history

* [Variables](https://docs.bbrands.io/enterprise/notifications/templates/variables.md)
* [Publish](https://docs.bbrands.io/enterprise/notifications/templates/publish.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |
| 2026-11-20 | The preview opens the right column and its source texts are shorter; reached from the event's channels (T-42) |


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