v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1486424386.4 KB

Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.

You can execute this operation no more than once per second.

post/v2/email/templates/{TemplateName}/render

Path parameters

TemplateNamestring required

The name of the template. You will refer to this name when you send email using the <code>SendTemplatedEmail</code> or <code>SendBulkTemplatedEmail</code> operations.

The name of the template.

Request body

TemplateDatastring required

An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.

Response

Success

RenderedTemplatestring required

The complete MIME message rendered by applying the data in the <code>TemplateData</code> parameter to the template specified in the TemplateName parameter.