transactionalEmails

Generate the rendered preview of transactional template

Generate a fully rendered preview of a transactional email template by resolving dynamic variables. Provide either an email address (to populate variables from the contact''s attributes) or a params object with key-value pairs for manual substitution; at least one of these is required alongside the mandatory templateId. The response includes the rendered HTML, subject, sender details, preview text, and any feed names used in the template.

post/smtp/template/preview

Request

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

Request body

unknown required
OR
unknown required

Response

successfully fetched template's preview fields

fromEmailstring

Sender email address

fromNamestring

Sender Name

htmlstring

Html content of the template

previewTextstring

Preview text of the template

subjectstring

subject of the template

usedFeedNamesstring[]

Changes

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