v1

latestSwagger 2.0MIT2026-07-17233380637.0 KB
Transactional emails

Returns the template information

get/smtp/templates/{templateId}

Path parameters

templateIdinteger required

id of the template

Response

Email template informations

idinteger required

ID of the template

namestring required

Name of the template

subjectstring required

Subject of the template

isActiveboolean required

Status of template (true=active, false=inactive)

testSentboolean required

Status of test sending for the template (true=test email has been sent, false=test email has not been sent)

replyTostring email required

Email defined as the "Reply to" for the template

toFieldstring required

Customisation of the "to" field for the template

tagstring required

Tag of the template

htmlContentstring required

HTML content of the template

createdAtstring required

Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)

modifiedAtstring required

Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)

doiTemplateboolean

It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call.

Example response

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