Skip to navigation

Render template

Renders a Mailchimp Transactional template with optional merge variables

Request

This endpoint expects an object.
keystringRequired
A valid Mandrill API key
mc_template_idintegerRequired
The Mailchimp template ID
mc_template_versionenumOptionalDefaults to published

The template version to render - "published" or "draft"

Allowed values:
merge_varslist of objects or nullOptional
Optional merge variables to inject into the template

Response

Success
htmlstring
Rendered HTML with merge variables applied

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error