List master templates
GET /master_templates
/master_templatesReturns 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.
Value for the X-Auth-Token header parameter.
In: header
Query Parameters
The collection page number
1The number of items per page
0 <= value <= 5030Return only master templates whose title contains this text.
Sort by creation date: asc or desc.
"asc"Value in
- "asc"
- "desc"
Sort by last update: asc or desc.
"asc"Value in
- "asc"
- "desc"
Sort by title: asc or desc.
"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" }]