Skip to navigation

Get template info

Returns complete information about a Mailchimp Transactional template including draft and published versions

Request

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

Response

Success
mc_template_idinteger
Mailchimp template ID
mc_template_namestring
Template name
labelslist of strings

Array of labels (always empty for transactional templates)

codestring

Template HTML (draft version)

subjectstring
Default subject line
from_emailstring
Default sending address
from_namestring
Default from name
textstring

Template text (draft version)

publish_codestring

Template HTML (published version)

publish_textstring

Template text (published version)

published_atstring or nullformat: "^$|^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d+)?$"

Date and time when template was published in UTC YYYY-MM-DD HH:MM:SS format

created_atstringformat: "^$|^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d+)?$"

Date and time when template was created in UTC YYYY-MM-DD HH:MM:SS format

updated_atstringformat: "^$|^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d+)?$"

Date and time when template was last updated in UTC YYYY-MM-DD HH:MM:SS format

is_broken_templateboolean
Whether template has rendering errors
draft_updated_atstringOptionalformat: "^$|^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d+)?$"

Date and time when template draft was last updated in UTC YYYY-MM-DD HH:MM:SS format

Errors

401
Unauthorized Error
404
Not Found Error
500
Internal Server Error