v1

latestSwagger 2.0MIT2026-07-17233380637.0 KB
Transactional emails

Get the list of email templates

get/smtp/templates

Query parameters

templateStatusboolean

Filter on the status of the template. Active = true, inactive = false

limitinteger

Number of documents returned per page

offsetinteger

Index of the first document in the page

sort'asc' | 'desc'

Sort the results in the ascending/descending order of record creation. Default order is descending if sort is not passed

Response

transactional email templates informations

countinteger

Count of transactional email templates

Example response

{
  "count": 1,
  "templates": [
    {
      "id": 4,
      "name": "Order Confirmation - EN",
      "subject": "Thanks for your order !",
      "isActive": true,
      "testSent": true,
      "sender": {
        "name": "Mary form MyShop",
        "email": "contact@myshop.fr",
        "id": "43"
      },
      "replyTo": "replyto@domain.com",
      "toField": "{FIRSTNAME} {LASTNAME}",
      "tag": "sports",
      "htmlContent": "Your order n°xxxxx has been confirmed. Thanks for your purchase.",
      "createdAt": "2017-05-01T12:30:00Z",
      "modifiedAt": "2017-05-12T12:30:00Z"
    }
  ]
}