latestSwagger 2.02026-08-10148196271.0 KB
afaab604b58c
templates
Preview email template with custom data
Generate a fully rendered HTML preview of an email template using custom data. This endpoint simulates how a template would appear when sent to a user, allowing you to test template rendering with specific data fields and/or data feed data. Use this to preview templates before sending campaigns or to test template logic with different data scenarios. <br/><br/>Note: If a template references a field that is not provided in the request data, that field will be rendered as an empty string, matching the behavior of actual email sends.<br/><br/><b>Rate limit</b>: 10 requests/second, per project.
post/api/templates/email/preview
Query parameters
templateIdinteger required
Template ID
localestring
Locale of content to get
Request body
Response
successful operation