---
title: "Preview a saved source revision and one ready locale without sending."
method: POST
path: "/v1/workspaces/{workspaceId}/managed-content/{contentId}/render"
---

# Preview a saved source revision and one ready locale without sending.

`POST /v1/workspaces/{workspaceId}/managed-content/{contentId}/render`

## Request

- Base URL: `https://api.bangermail.com`
- URL: `https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}/render`
- Auth: HTTP bearer

## Request body

- object: Use either sample_set or variables, never both. Defaults to the first named sample.
  - `source_revision_id` string, uuid
  - `variant` string: Source A/B version key.
  - `locale` string
  - `timezone` string: IANA timezone; defaults to UTC.
  - `sample_set` string
  - `variables` object

## Response `200`

Deterministic subject, preheader, HTML, derived plain text, locale, and direction.

- object
  - `data` RenderedManagedEmail, required
    - `subject` string, required
    - `preheader` string
    - `html` string, required
    - `text` string, required
    - `locale` string, required
    - `direction` 'ltr' | 'rtl', required
    - `warnings` string[]
    - `source_revision_id` string, uuid, required
    - `layout_revision_id` string, uuid, nullable, required

## Other responses

- `422`: The locale, sample, values, or rendered HTML are not ready or invalid.

---

[API](https://skmtc.dev/bangermail/apis/banger-api.md) · [All operations](https://skmtc.dev/bangermail/apis/banger-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bangermail/apis/banger-api/revisions/a149909267f9?raw)
