---
title: "Preview an email template for a Subscriber"
method: POST
path: "/v1/email-templates/{template_id}/preview"
tags: ["Email Templates"]
---

# Preview an email template for a Subscriber

`POST /v1/email-templates/{template_id}/preview`

## Request

- Base URL: `https://api.mailrith.com`
- URL: `https://api.mailrith.com/v1/email-templates/{template_id}/preview`
- Auth: HTTP bearer

Renders one template using a saved Subscriber's name, email, and custom fields without sending or saving anything.

## Path parameters

- `template_id` string, required

## Request body

- SubscriberPreviewRequest
  - `subscriber_id` string, required: The saved Subscriber whose name, email, and custom fields should be used for personalization.

## Response `200`

Successful response

- object
  - `data` EmailTemplatePreview, required
    - `template_id` string, required
    - `subscriber_id` string, required
    - `html` string, required
    - `text` string, required

## Other responses

- `400`: Request is invalid
- `404`: Template or Subscriber not found

---

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