Render a Jinja2 HTML template with your data, inline all CSS for Outlook and Gmail compatibility, and get back a plain-text fallback — in one call.
POST /v1/email/renderPer render| Field | Type | Description |
|---|---|---|
| template* | string | Jinja2 HTML template string |
| data | object | Key–value pairs injected into the template (default {}) |
| Field | Type | Description |
|---|---|---|
| html | string | Rendered HTML with all CSS inlined; <style> blocks removed |
| text | string | Plain-text fallback extracted from the rendered HTML |
Request
{
"template": "<html><body><h1>Hello, {{ name }}!</h1><style>h1 { color: #333; }</style></body></html>",
"data": {
"name": "Alice"
}
}Response
{
"html": "<html><body><h1 style=\"color: #333;\">Hello, Alice!</h1></body></html>",
"text": "Hello, Alice!"
}