emails

Render an email template

Render a saved email template with optional merge variables. Returns the final HTML without sending. Useful for previewing emails before sending.

post/v3/emails/render

Request

  • Base URL: https://api.unlayer.com
  • URL: https://api.unlayer.com/v3/emails/render
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

templateIdstring required

Template ID to render

variablesobject

Merge variables to substitute. Use {{key}} syntax in your template.

Response

Default Response

Changes

No recorded changes to this operation across all 2 revisions of this API.