Skip to main content
POST

Preview Email Template

Renders arbitrary subject/body content against a hard-coded set of sample RFQ/quote/customer data, wrapped in Khaime’s standard email layout — without saving anything. Use this to check a template renders correctly before calling Upsert Email Template.

Request Body

string
required
Subject line to render, max 255 characters. Not persisted.
string
required
HTML body to render. Not persisted.

Response

html is the fully wrapped, rendered output — same layout wrapper used for real sends. The sample data used for placeholders is fixed server-side; you cannot supply your own preview data. See Upsert Email Template § Template Variables for the full list of {{variable}} placeholders available and which event types populate which ones — the fixed preview data covers most of them, but not conditional fields like rejection_reason.

Error Codes