Skip to main content
Question

Flow email delivers with its body duplicated, but template + render API show a single clean email

  • June 17, 2026
  • 0 replies
  • 0 views

Forum|alt.badge.img

Hoping someone (or Klaviyo staff) can help with a strange one.

One email in a Draft flow delivers with its entire body duplicated — logo → hero → copy → product → footer, then the whole thing again. It happens on every test send ("Preview email → Send as an email"), viewed in Gmail.

But the template is a single, clean HTML document by every measure I can check:

  • The HTML code editor shows one <!DOCTYPE>, one <body>, one of each element.
  • GET /api/templates/{id} returns a single clean document.
  • POST /api/template-render (render API) returns a single clean email.
  • The in-app Preview (editor + content page) renders a single email.

Two sibling emails in the same flow, built with structurally identical templates, deliver correctly as a single email.

Things I've tried — all still deliver doubled:

  1. Removed a pre-existing duplicate <!DOCTYPE>/<head> and saved a clean single document.
  2. Switched the message template type Text → HTML and re-pasted clean HTML (fresh template blob).
  3. Created a brand-new message in the flow with a fresh HTML template + clean content.

It looks like a cached/compiled send-version is held at the message level that isn't refreshed by editing the template, switching type, or even creating a new message. It's an HTML (code) template on an Added-to-List flow.

Q: Why would a single clean template (confirmed via the render API) deliver with its body duplicated for one specific message, while identical sibling messages deliver fine — and how do I clear/rebuild that compiled version? Happy to share message/template IDs privately.