---
title: "Preview a rendered email template"
method: POST
path: "/public/v1/email-templates/{templateId}/preview"
tags: ["Email Templates"]
---

# Preview a rendered email template

`POST /public/v1/email-templates/{templateId}/preview`

Renders the template with the same renderer the runtime uses. Supplying a personRowId interpolates that Person's values.

## Path parameters

- `templateId` integer, required

## Request body

- object
  - `personRowId` string

## Response `200`

Rendered email

- object
  - `subject` string, required
  - `html` string, required
  - `text` string, required
  - `personRowId` string, nullable, required
  - `unresolvedVariables` string[], required

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Email template not found
- `409` — Version conflict (TEMPLATE_VERSION_CONFLICT)

## Changes

- **2026-10-03** `666cd9efa9f3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/getfrontline/apis/public-api/changes/public/v1/email-templates/:templateId/preview/post.md)

---

[API](https://skmtc.dev/getfrontline/apis/public-api.md) · [All operations](https://skmtc.dev/getfrontline/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getfrontline/apis/public-api/revisions/666cd9efa9f3?raw)
