Easymailing
Master templates

List master templates

GET /master_templates

GET/master_templates

Returns the master templates of the account, which are base designs saved as master in the panel. Each one carries its HTML and, if it is a visual-editor design, its simple JSON.

When to use: To see which base designs the account has before creating a new template from one of them.

When not to use: For all templates of the account use list_templates; for the ready-made designs offered by Easymailing use list_themes.

Filters: title: partial match on the title. 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 master templates whose title contains this text.

order[created_at]?string

Sort by creation date: asc or desc.

Default"asc"

Value in

  • "asc"
  • "desc"
order[updated_at]?string

Sort by last update: asc or desc.

Default"asc"

Value in

  • "asc"
  • "desc"
order[title]?string

Sort by title: asc or desc.

Default"asc"

Value in

  • "asc"
  • "desc"

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/master_templates?title=Newsletter+base&order%5Bcreated_at%5D=desc&order%5Bupdated_at%5D=desc&order%5Btitle%5D=asc" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "id": 0,    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "title": "string",    "type": "be_editor",    "thumbnail": "http://example.com",    "content": "string",    "simple_json_code": {},    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]