Easymailing
Templates

Get a template

GET /templates/{uuid}

GET/templates/{uuid}

Returns one template with its HTML and, for visual-editor templates, its simple JSON.

When to use: To read the design of a template before editing it or sending a test of it.

When not to use: To find templates by title use list_templates.

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

Path Parameters

uuid*string

UUID of the template. Get it with list_templates.

Response Body

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/templates/5c0e8b17-3a94-4d62-b1f7-90a4c6e2d835" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "id": 0,  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "title": "string",  "content": "string",  "type": "be_editor",  "simple_json_code": {},  "thumbnail": "http://example.com",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}