Skip to Content
API ReferenceTemplatesPreview template

Preview template

Render a react_email_json payload to HTML + plaintext without saving a template. Useful for live preview UIs in your panel before you persist via POST /templates.

POST /api/v1/partner/email/templates/preview

Request body

{ "react_email_json": "{...}", "variables": { "first_name": "Alex", "company_name": "Acme" } }
FieldTypeRequiredNotes
react_email_jsonstringyesVisual-editor block JSON
variablesobjectnoSubstitution map applied to the rendered output

Response

{ "success": true, "html": "<!DOCTYPE html><html>...</html>", "text": "..." }

cURL

curl https://apis.splashifypro.com/api/v1/partner/email/templates/preview \ -H "Authorization: Bearer $SPLASHIFY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "react_email_json": "...", "variables": {"first_name": "Alex"} }'

Common errors

StatusCodeMeaning
503RENDERER_UNAVAILABLETemplate rendering service is temporarily down — retry
502RENDER_FAILEDThe JSON couldn’t be compiled. Read the message