---
title: "Preview a broadcast"
method: POST
path: "/broadcasts/{id}/preview"
tags: ["Broadcasts"]
---

# Preview a broadcast

`POST /broadcasts/{id}/preview`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/broadcasts/{id}/preview`
- Auth: API key in header `Authorization`

Renders the email campaign exactly as `contact_id` would receive it (subject, preview line and the full HTML in the account's layout) without sending anything. Nothing is recorded: no delivery, no stats, no enrollment. The unsubscribe link in it is a placeholder that unsubscribes nobody. A draft or scheduled broadcast renders from its current content; one that is sending or sent renders from the snapshot that went out. Broadcasts use only live variables, so `data_source` is `contact` (or `none`).

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- EmailPreviewRequest
  - `contact_id` string: Render as this contact (`con_...`). Omit to use every variable's default.

## Response `200`

The rendered email

- EmailPreview: An email rendered for one contact exactly as they would receive it, without sending it.
  - `object` 'email_preview', required
  - `subject` string, required: The subject with its variables filled in.
  - `preview_text` string, required: The inbox preview line with its variables filled in, or empty.
  - `html` string, required: The whole email, layout included. Its unsubscribe link is a placeholder that unsubscribes nobody.
  - `data_source` 'none' | 'contact' | 'enrollment' | 'latest_order' | 'no_order', required: Whose data filled the variables: `none` (no `contact_id`, so every variable uses its default), `contact` (their details as they are now), `enrollment` (a sequence step for someone enrolled: what they joined with), `latest_order` (not enrolled, so product and order variables come from their latest order) or `no_order` (not enrolled and no order, so those variables are blank).

## Other responses

- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-15** `56c22ab9b282`: 6 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `422`
  - …2 more
- **2026-11-14** `a37321cbfdd6`: 2 warning, 2 info
  - removed the request property `customer_id`
  - added the new `contact` enum value to the `data_source` response property for the response status `200`
  - added the new optional request property `contact_id`
  - removed the `customer` enum value from the `data_source` response property for the response status `200`
- **2026-11-03** `e3252049784c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/broadcasts/:id/preview/post.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
