Skip to main content
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 either blocks or html, not both.
object[]
Sequenzy email block JSON array to render (the same structure returned by Get Template and accepted by Create Template). Mutually exclusive with html.
string
Raw HTML email document to render. Mutually exclusive with blocks.
string
Optional subject line. Merge tags are resolved and returned in subject. Defaults to an empty string.
string | null
Optional inbox preview text (preheader). Merge tags are resolved and returned in previewText.
object | null
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.
string | null
Optional font family override (1 to 500 characters). Omit or pass null to use your company’s font family.
string | null
Optional text direction: ltr or rtl. Omit or pass null to use your company’s direction.
boolean
default:"false"
When true, omits the unsubscribe footer and treats variables as transactional sender variables, matching transactional email sends.
string
Personalize as this stored subscriber. Use this or subscriber, not both. Requires the subscribers:read scope.
object
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.
object
Extra merge variables layered over the contact’s attributes.
string
Locale code for date/number formatting and company footer localization. Defaults to your company’s language or en.
boolean
default:"false"
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

  • unresolvedMergeTags and unevaluatedConditions work the same way as Render Template HTML.
  • When blocks contains unknown or ignored fields, or repeated block runs, non-fatal messages are returned in warnings.
  • 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.

Responses