v4
OpenAPI 3.1.02026-07-3163216290.7 KBEmail messages
Send a preview of an email message
Send a test preview of an email message to one or more addresses. The accepted variable fields depend on the parent's type - campaign previews accept contactProperties, workflow previews accept contactProperties and eventProperties, and transactional previews accept dataVariables. Supplying a field the parent cannot reference is rejected with 400.
post/v1/email-messages/{emailMessageId}/preview
Request body
Example request
{
"emails": [
"alex@company.com"
],
"contactProperties": {
"firstName": "Alex"
},
"eventProperties": {
"planName": "Pro"
},
"dataVariables": {
"loginUrl": "https://app.company.com/login"
}
}Response
Preview scheduled.
Example response
{
"id": "cle5f7g9h1i3j5k7l9m1n3p5"
}