Render an email template
Renders a template using the provided Liquid variables. Missing template_variables defaults to {}.
When the template has strict_variables enabled and a required variable (per variable_schema) is missing, returns 422 naming the variable. When the template has autoescape enabled, the rendered html_body expression output is HTML-escaped at the output boundary; subject and text_body are not autoescaped.
Authorizations
Telnyx API key supplied as Authorization: Bearer <token>. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.
Path Parameters
Email template UUID.
Body
Variables for Liquid template rendering. Non-object values are silently treated as an empty object.
Response
Rendered template content.
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.