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

# Render email template

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

## Request

- Base URL: `https://api.omnisend.com/api`
- URL: `https://api.omnisend.com/api/email-templates/{id}/render`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://app.omnisend.com/oauth2/token` scopes: `email-templates.write`
  - API key in header `Authorization`

With this endpoint you can render an email template by ID and get the full HTML body for preview purposes.

**Scopes:**
`email-templates.write`

**Rate Limiting:**
This endpoint is rate limited to 40 requests per minute.

## Path parameters

- `id` string, required

## Headers

- `Omnisend-Version` string, required

## Response `200`

Rendered HTML body

- object

## Other responses

- `400`: Invalid template ID or missing brand ID
- `401`: Authentication is missing or invalid
- `403`: Insufficient permissions for this operation
- `404`: Template not found
- `410`: API version has been retired
- `429`: Rate limit exceeded
- `500`: Unexpected error occurred

---

[API](https://skmtc.dev/omnisend/apis/email-content-api.md) - [All operations](https://skmtc.dev/omnisend/apis/email-content-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnisend/apis/email-content-api/revisions/4f249eb0de04?raw)
