templates

List templates

Get a list of an account's available templates.

get/3.0/templates

Request

Query parameters

fieldsstring[]

A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.

exclude_fieldsstring[]

A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.

countinteger

The number of records to return. Default value is 10. Maximum value is 1000

offsetinteger

Used for pagination, this is the number of records from a collection to skip. Default value is 0.

created_bystring

The Mailchimp account user who created the template.

since_date_createdstring

Restrict the response to templates created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

before_date_createdstring

Restrict the response to templates created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

typestring

Limit results based on template type.

categorystring

Limit results based on category.

folder_idstring

The unique folder id.

sort_field'date_created' | 'date_edited' | 'name'

Returns user templates sorted by the specified field.

content_type'html' | 'template' | 'multichannel'

Limit results based on how the template's content is put together. Only templates of type user can be filtered by content_type. If you want to retrieve saved templates created with the legacy email editor, then filter content_type to template. If you'd rather pull your saved templates for the new editor, filter to multichannel. For code your own templates, filter to html.

sort_dir'ASC' | 'DESC'

Determines the order direction for sorted results.

Response

total_itemsinteger

The total number of items matching the query regardless of pagination.

Changes

No recorded changes to this operation across all 1 revision of this API.