For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Help CenterAPI KeysStatusSign In
GuidesAPI ReferenceChangelog
GuidesAPI ReferenceChangelog
LogoLogo
Help CenterAPI KeysStatusSign In

Changelog

May 15, 2025
May 15, 2025
Was this page helpful?
Previous

May 1, 2025

Next
Built with

Generate Rendered Preview of a Transactional Template

This new endpoint allows developers to generate a rendered HTML preview of a transactional email template using dynamic parameters or a contacts attributes.

Use Cases:

  • Preview how a transactional template will render with real or test data.
  • Validate personalization variables before sending emails.
  • Automate template rendering in backend systems.
Request
curl --request POST \
--url https://api.brevo.com/v3/smtp/template/preview \
--header 'api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"templateId": 22,
"params": {
"Firstname": "John",
"Lastname": "Doe"
}
}'

Route: Generate the rendered preview of transactional template