Yes, passing full HTML strings via the API to be rendered within an HTML-editor template is supported functionality.
How to implement:
- Prepare the Template: In your Email Template (created via the HTML Editor), insert a Liquid placeholder where the content should appear, e.g.,
{{ VAR_NAME }}. - Send the Request: In your
/createEmailMessageAPI call, pass the HTML string using either thecontentordynamic_content_placeholdersparameter.
Example API Payload:
{
"request": {
"notifications": [{
"dynamic_content_placeholders": {
"VAR_NAME": "<div>Your injected HTML content here</div>"
}
}]
}
}
The Liquid engine will resolve the placeholder and render the passed HTML string at send time.
Comments
0 comments
Please sign in to leave a comment.