---
title: "Render an email template"
method: POST
path: "/v3/email-templates/{id}/render"
tags: ["Email Templates"]
---

# Render an email template

`POST /v3/email-templates/{id}/render`

<small>_Requires the `sequences:operate` scope (or a broader one that includes it)._</small>

Renders an email template by substituting variables with actual contact data.

## Path parameters

- `id` integer, required

## Request body

- object — Request body for rendering an email template with variable substitution.
  - `contactId` integer, required — ID of the contact whose data is used for variable substitution
  - `sequenceId` integer, nullable — Optional sequence ID for sequence-specific variables
  - `emailAccountId` integer, nullable — Optional email account ID for sender-specific variables

## Response `200`

Rendered template result

- object — Result of rendering an email template with variable substitution.
  - `subject` string, nullable — Rendered email subject with variables replaced
  - `body` string, nullable — Rendered email body with variables replaced
  - `isSuccess` boolean — Whether the rendering completed successfully
  - `errors` object[] — List of rendering errors (e.g., unresolved variables)
    - `code` integer — Error code identifying the type of rendering error
    - `message` string — Human-readable error message
    - `variable` string, nullable — Name of the unresolved variable (only present for code 13 — unresolved variable errors)

## Other responses

- `400` — Validation failure on the request body or route parameter, or a business rule rejection (e.g. template render failed).
- `401` — Unauthorized. The response body is empty; check the `WWW-Authenticate` header for the expected scheme.
- `403` — User lacks required feature scope to render email templates
- `404` — Email template or contact not found
- `429` — Too Many Requests

---

[API](https://skmtc.net/reply/apis/reply-api.md) · [All operations](https://skmtc.net/reply/apis/reply-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reply/reply-api/versions/1c3d32eaf95e/schema)
