Skip to navigation

List all templates

Returns a list of all templates available to this user.

Request

This endpoint expects an object.
keystringRequired
A valid Mandrill API key
labelstring or nullOptional
Optional label to filter the templates

Response

Success
slugstring
Immutable unique identifier for the template
namestring

Human-readable name of the template

labelslist of strings
Array of labels for filtering templates
codestring or null

Draft HTML code for the template with mc:edit attributes

subjectstring or null
Draft default subject line
from_emailstring or nullformat: "email"
Draft default sending address
from_namestring or null
Draft default from name
textstring or null
Draft default text part
publish_namestring
Published name of the template
publish_codestring or null
Published HTML code for the template
publish_subjectstring or null
Published default subject line
publish_from_emailstring or nullformat: "email"
Published default sending address
publish_from_namestring or null
Published default from name
publish_textstring or null
Published default text part
published_atstring or nullformat: "^$|^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d+)?$"

Date and time when template was last 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 the template has broken syntax or references
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
500
Internal Server Error