Compiles an MJML template with provided data, returning the rendered HTML.
When subject and/or subject_preview are provided, they are rendered
through the same Liquid engine used at send time and returned alongside
the HTML so callers do not need to run a separate Liquid pass to preview
the subject line. Useful for previewing templates before saving.
Documentation Index
Fetch the complete documentation index at: https://docs.notifuse.com/llms.txt
Use this file to discover all available pages before exploring further.
API token for authentication
The ID of the workspace
"ws_1234567890"
Unique message ID for tracking
"msg_abc123"
MJML visual editor tree structure (must have type 'mjml')
Optional email subject. When provided, it is rendered through the same
Liquid engine the send path uses (with test_data) and the rendered
result is returned as subject in the response. Liquid processing is
skipped when preserve_liquid is true, channel is web, or
test_data is empty.
"Hi {{ contact.first_name }}"
Optional inbox preview text (the snippet shown after the subject in
most clients). Rendered through Liquid like subject and returned as
subject_preview in the response.
"Welcome {{ contact.first_name }}"
Data to use for Liquid templating
{
"user_name": "John Doe",
"action_url": "https://example.com/action"
}Channel filter for block visibility
email, web Template compiled successfully
Whether compilation was successful
Generated MJML markup
Compiled HTML output
Rendered email subject. Present only when the request included a
non-empty subject. Returned on both success and error paths so the
caller can display the rendered subject alongside any compilation
error.
"Hi Pierre"
Rendered inbox preview text. Present only when the request included a
non-empty subject_preview. Returned on both success and error paths.
"Welcome Pierre"
MJML compilation error details, if any