Compile template
Compiles an MJML template with provided data, returning the rendered HTML. Useful for previewing templates before saving.
post/api/templates.compile
Request body
Example request
{
"workspace_id": "ws_1234567890",
"message_id": "msg_abc123",
"test_data": {
"user_name": "John Doe",
"action_url": "https://example.com/action"
}
}Response
Template compiled successfully