---
title: "Render Campaign Email Preview"
method: POST
path: "/api/v1/campaigns/{campaign_id}/email-preview"
tags: ["campaigns"]
---

# Render Campaign Email Preview

`POST /api/v1/campaigns/{campaign_id}/email-preview`

## Request

- Base URL: `https://api.getanana.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getanana.com/api/v1/campaigns/{campaign_id}/email-preview`
- Auth: none declared

Render a draft being edited — subject and body as typed, not yet saved —
the way it will be sent (PLAN-campaigns PR 16), so what the reviewer sees is
what the guest gets. Read-only: changes no state.

## Path parameters

- `campaign_id` string, uuid, required

## Request body

- CampaignEmailPreviewRequest: A draft as currently typed in the review editor (PR 16).
  - `subject` string
  - `body` string, required

## Response `200`

Successful Response

- CampaignEmailPreviewRead: A rendered preview of the campaign's email (same HTML the send produces).
  - `subject` string, required
  - `html` string, required
  - `from_draft` boolean, required

## Other responses

- `404`: Campaign not found
- `422`: Validation Error

## Changes

> 93 revisions in range; 1 not diffed.

- **2026-11-16** `d0cd9ee1c7f7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getanana/apis/cleon-api/changes/api/v1/campaigns/:campaign_id/email-preview/post.md)

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) - [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getanana/apis/cleon-api/revisions/41e7f0687064?raw)
