transactionalEmails

Create an email template

Create a new transactional email template with the specified sender, subject, and content. The sender, subject, and templateName fields are required. Template content can be provided via htmlContent (minimum 10 characters) or htmlUrl; at least one must be supplied. Templates are created as inactive by default unless isActive is explicitly set to true.

post/smtp/templates

Request

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

Request body

attachmentUrlstring url

Absolute url of the attachment (no local file). Extension allowed: #### xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps'

htmlContentstring

Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty

htmlUrlstring url

Url which contents the body of the email message. REQUIRED if htmlContent is empty

isActiveboolean

Status of template. isActive = true means template is active and isActive = false means template is inactive

replyTostring email

Email on which campaign recipients will be able to reply to

subjectstring required

Subject of the template

tagstring

Tag of the template

templateNamestring required

Name of the template

toFieldstring

To personalize the To Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your Brevo account. If input parameter params used please use {{contact.FNAME}} {{contact.LNAME}} for personalization

Response

successfully created

idinteger required

ID of the object created

Changes

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