---
title: "POST /v2/email/templates/{TemplateName}/render"
method: POST
path: "/v2/email/templates/{TemplateName}/render"
---

# POST /v2/email/templates/{TemplateName}/render

`POST /v2/email/templates/{TemplateName}/render`

Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.

You can execute this operation no more than once per second.

## Path parameters

- `TemplateName` string, required — The name of the template. You will refer to this name when you send email using the <code>SendTemplatedEmail</code> or <code>SendBulkTemplatedEmail</code> operations.

## Request body

- object
  - `TemplateData` string, required — An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.

## Response `200`

Success

- TestRenderEmailTemplateResponse — The following element is returned by the service.
  - `RenderedTemplate` string, required — The complete MIME message rendered by applying the data in the <code>TemplateData</code> parameter to the template specified in the TemplateName parameter.

## Other responses

- `480` — NotFoundException
- `481` — TooManyRequestsException
- `482` — BadRequestException

---

[API](https://skmtc.net/aws/apis/sesv2.md) · [All operations](https://skmtc.net/aws/apis/sesv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/sesv2/versions/25eba06e7f64/schema)
