List ready-made themes
GET /themes
/themesReturns the ready-made email designs available to the account (themes), newest first, each with its description, thumbnail, types and industries and whether it needs a paid plan (without the HTML; get_theme returns it).
When to use: To browse the designs Easymailing offers when a customer wants to start from a professional layout. Narrow the list with the filters and copy one with create_template_from_theme.
When not to use: For the account's own templates use list_templates; for the account's own base designs use list_master_templates.
Filters: title: partial match on the theme title. types: theme type IDs from list_theme_types, comma-separated. industries: industry IDs from list_theme_industries, comma-separated. requires_pro: true for themes that need a paid plan, false for the rest. is_new: true for themes created in the last 15 days. Sort with order[created_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 themes whose title contains this text.
Return only themes of these types: IDs from list_theme_types, comma-separated.
Return only themes of these industries: IDs from list_theme_industries, comma-separated.
true returns only themes that need a paid plan, false only the free ones.
true returns only themes created in the last 15 days.
Sort by creation date: asc or desc. Newest first by default.
"asc"Value in
- "asc"
- "desc"
Response Body
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/themes?title=newsletter&types=1%2C2&industries=1%2C3&requires_pro=false&is_new=true&order%5Bcreated_at%5D=desc" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "description": "string", "thumbnail": "http://example.com", "types": [ { "id": 0, "name": "string" } ], "industries": [ { "id": 0, "name": "string" } ], "requires_pro": true, "is_new": true, "created_at": "2019-08-24T14:15:22Z", "content": "string" }]