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/previewRequest body
{
"react_email_json": "{...}",
"variables": {
"first_name": "Alex",
"company_name": "Acme"
}
}| Field | Type | Required | Notes |
|---|---|---|---|
react_email_json | string | yes | Visual-editor block JSON |
variables | object | no | Substitution 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
| Status | Code | Meaning |
|---|---|---|
| 503 | RENDERER_UNAVAILABLE | Template rendering service is temporarily down — retry |
| 502 | RENDER_FAILED | The JSON couldn’t be compiled. Read the message |