Email messages
Render an email message as HTML
Changed onRender the HTML of an email message the way its preview email is rendered. Nothing is sent. The accepted variable fields are the same as for previews - campaigns accept contactProperties, workflows accept contactProperties and eventProperties, and transactional emails accept dataVariables. A variable without a value uses its fallback, or shows a missing-value marker as in a preview email. Supplying a field the parent cannot reference is rejected with 400.
post/v1/email-messages/{emailMessageId}/render
Request
- Base URLhttps://app.loops.so/api
- AuthHTTP bearer
Request body
Example request
{
"contactProperties": {
"firstName": "Alex"
},
"eventProperties": {
"planName": "Pro"
},
"dataVariables": {
"loginUrl": "https://app.company.com/login"
}
}Response
Rendered email message.
Example response
{
"html": "<!doctype html><html>...</html>"
}Changes
- info
endpoint added
- info