Easymailing
Templates

List email templates

GET /templates

GET/templates

Returns the email templates of the account, newest first, with their title, type and thumbnail but not their HTML.

When to use: To find an existing design to reuse in a campaign or automation, or to look up a template by its title.

When not to use: To read a template together with its HTML use get_template; for ready-made designs you can copy use list_master_templates or list_themes.

Filters: title: partial match on the title. type: exact type, be_editor (visual editor) or code_own (custom HTML). Sort with order[created_at], order[updated_at] or order[title] (asc/desc).

Permissions: Requires the author role or higher, or the marketing.templates.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Query Parameters

page?integer

The collection page number

Default1
itemsPerPage?integer

The number of items per page

Range0 <= value <= 50
Default30
title?string

Return only templates whose title contains this text.

type?string

Return only templates of this type: be_editor (visual editor) or code_own (custom HTML).

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/templates?title=Newsletter&type=be_editor" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "id": 0,    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "title": "string",    "type": "be_editor",    "thumbnail": "http://example.com",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]