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

# Render an email template

`POST /email_templates/{id}/render`

Renders a template using the provided Liquid variables. Missing `template_variables` defaults to `{}`.

## Path parameters

- `id` string, uuid, required

## Request body

- RenderEmailTemplateRequest
  - `template_variables` object — Variables for Liquid template rendering. Non-object values are silently treated as an empty object.

## Response `200`

Rendered template content.

- RenderedEmailTemplateResponse
  - `data` RenderedEmailTemplate, required — Template object with `subject`, `html_body`, and `text_body` replaced by their Liquid-rendered values. All other template fields (id, name, variables, etc.) remain unchanged.
    - `record_type` 'email_template', required
    - `id` string, uuid, required
    - `name` string, required
    - `subject` string, nullable, required
    - `html_body` string, nullable, required
    - `text_body` string, nullable, required
    - `variables` string[], required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `401` — Not authorized (10006).
- `404` — Resource not found (10001).
- `422` — Standalone template render failure (10015).

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/versions/8f5f4e537994/schema)
