Preview Emails Draft
Render a preview against UNSAVED template instructions.
Companion to GET /preview-emails. The GET reads from segment.email_templates (saved state). This POST takes the instructions inline so the editor can validate (preview + moderate) BEFORE persisting — template only lands in the DB after the user confirms a clean preview, then PATCH /segments fires Save.
No cache writes. Each call regenerates against the supplied instructions; the saved-state cache (generated_email) is keyed by email_templates_version and updates only via the GET path after Save commits the new version.
Touches generate sequentially so each follow-up receives the prior touch's body as prev_email (mirrors the production sender exactly). touches scopes the render to one editor's touches; a follow-up-only request anchors on the cached saved-state touch 1.
Path parameters
Cookies
Request body
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.