Email Templates

Render an email template

Changed on

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.

post/email_templates/{id}/render

Request

  • Base URL: https://api.telnyx.com/v2
  • URL: https://api.telnyx.com/v2/email_templates/{id}/render
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Email template UUID.

Request body

template_variablesobject

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

Response

Rendered template content.

Changes

    • info

      added to the response property allOf list for the response status

    • info

      removed from the response property allOf list for the response status

    • info

      added the required property // to the response with the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status

    • info

      added the required property ///// to the response with the status