---
title: "Render Template"
method: POST
path: "/v1/templates/render"
tags: ["templates"]
---

# Render Template

`POST /v1/templates/render`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v1/templates/render`
- Auth: HTTP bearer

Render an email template from business context.

This endpoint is intentionally decoupled from offer sending: it does not create
offers, carrier offers, conversations, or public booking tokens. Any server-only
values such as ``offer.public_booking_link`` must be passed through overrides.

## Headers

- `mentium-workspace-id` string, nullable

## Request body

- TemplateRenderRequest
  - `template_id` string, uuid, nullable
  - `load` TemplateRenderLoadContext, required
    - `integration_connection_id` string, required
    - `external_reference_id` string, required
  - `carrier` TemplateRenderCarrierContext
    - `external_reference_id` string, required
    - `integration_connection_id` string, nullable
    - `selected_contact` TemplateRenderSelectedContact
      - `name` string, nullable
      - `email` string, nullable
      - `phone` string, nullable
      - `type` string, nullable
  - `overrides` TemplateRenderOverrides
    - `load` object
    - `carrier` object
    - `offer` object
    - `organization` object
  - `subject_template_override` string, nullable: Inline subject template used instead of the saved template subject.
  - `body_template_override` string, nullable: Inline body template used instead of the saved template body.

## Response `200`

Successful Response

- TemplateRenderResponse
  - `subject` string, required
  - `body` string, required
  - `unresolved_variables` string[]

## Other responses

- `404`: Not found
- `422`: Validation Error

---

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