transactionalEmails

Returns the template information

Retrieve the full details of a specific transactional email template by its numeric ID or custom template identifier string. The response includes the template name, subject, sender information, HTML content, active status, creation and modification timestamps, reply-to address, tag, and a doiTemplate flag indicating whether the template is a double opt-in template (detected by the presence of optin-related tags or variables in the content).

get/smtp/templates/{templateId}

Request

  • Base URL: https://api.brevo.com/v3
  • URL: https://api.brevo.com/v3/smtp/templates/{templateId}
  • Auth: API key in header api-key

Path parameters

integer required
OR
string required

ID of the template. Can be a numeric template ID or a custom template identifier string (alphanumeric, hyphens, and underscores only, max 64 characters, must start with a letter).

Response

Email template informations

createdAtstring required

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

htmlContentstring required

HTML content of the template

idinteger required

ID of the template

isActiveboolean required

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

modifiedAtstring required

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

namestring required

Name of the template

replyTostring email required

Email defined as the "Reply to" for the template

subjectstring required

Subject of the template

tagstring required

Tag of the template

testSentboolean required

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

toFieldstring required

Customisation of the "to" field for the template

customTemplateIdstring

Custom template identifier, if one was assigned during template creation. Only present when the template has a custom ID.

Changes

No recorded changes to this operation across all 1 revision of this API.