API reference

Templates

Read your reusable email templates.

Read your saved email templates (name + body).

List templates

GET/v1/templatesfull access
bash
curl https://mailer123.com/api/v1/templates \
-H "Authorization: Bearer m123_your_api_key"

Retrieve a template

GET/v1/templates/{id}full access

Fetch one template by id, or 404 not_found if it doesn't exist. Use the returned body as the html when sending via the Emails endpoint.

json
{ "data": { "id": "...", "name": "Welcome", "body": "<h1>Hi {{name|there}}</h1>", "status": "published" } }