Easymailing
Themes

List ready-made themes

GET /themes

GET/themes

Returns 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.

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 themes whose title contains this text.

types?string

Return only themes of these types: IDs from list_theme_types, comma-separated.

industries?string

Return only themes of these industries: IDs from list_theme_industries, comma-separated.

requires_pro?boolean

true returns only themes that need a paid plan, false only the free ones.

is_new?boolean

true returns only themes created in the last 15 days.

order[created_at]?string

Sort by creation date: asc or desc. Newest first by default.

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"  }]