Templates
Render Blocks Preview HTML
Render unsaved email blocks or HTML to email-ready HTML without creating or updating a template
POST
Render Blocks Preview HTML
Render Sequenzy email block JSON (or raw HTML) straight to the exact email-safe HTML that Sequenzy sends, without creating or updating a template in your account. Use this when your own admin UI or editor holds draft blocks locally and needs a live visual preview.
The render applies your company’s branding, logo, footer, email theme, and font by default, and supports optional overrides (
emailTheme, fontFamily, emailDirection, isTransactional), merge tags, block visibility conditions, and product recommendation blocks.
This endpoint is read-only. It requires the
templates:read scope and never
saves or sends anything. Passing subscriberId also requires the
subscribers:read scope.Request
Provide eitherblocks or html, not both.
Sequenzy email block JSON array to render (the same structure returned by Get
Template and accepted by Create
Template). Mutually exclusive with
html.Optional subject line. Merge tags are resolved and returned in
subject.
Defaults to an empty string.Optional inbox preview text (preheader). Merge tags are resolved and returned
in
previewText.Optional full or partial
emailTheme override (accepts the object returned by
GET /api/v1/templates/{templateId} as-is, or a partial patch). Omit or pass
null to use your company’s email theme.Optional font family override (1 to 500 characters). Omit or pass
null to
use your company’s font family.Optional text direction:
ltr or rtl. Omit or pass null to use your
company’s direction.When
true, omits the unsubscribe footer and treats variables as
transactional sender variables, matching transactional email sends.Personalize as this stored subscriber. Use this or
subscriber, not both.
Requires the subscribers:read scope.Personalize as an ad-hoc contact that does not need to exist in your account.
Accepts
email (required), firstName, lastName, customAttributes, and
tags. Use this or subscriberId, not both.Locale code for date/number formatting and company footer localization.
Defaults to your company’s language or
en.Apply your company’s auto-UTM link decoration, as a real send would. Defaults
to
false so the preview shows your own clean URLs.Merge tags, conditions, and warnings
unresolvedMergeTagsandunevaluatedConditionswork the same way as Render Template HTML.- When
blockscontains unknown or ignored fields, or repeated block runs, non-fatal messages are returned inwarnings. - Per-send click redirects, the open tracking pixel, and unsubscribe click tracking are applied at send time against a real email send record and are never present in the preview HTML.