POST Preview Campaign Email HTML​
POST
/campaigns/email-preview-html
Generate a rendered HTML preview of a campaign email. Can preview either a saved campaign (by campaign_id) or unsaved campaign data passed in the request body. SmartCodes and template rendering are applied. Optionally preview as a specific contact.
Authorizations​
ApplicationPasswords
WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password
Type
API Key (header: Authorization)
Request Body​
application/json
JSON
{
"campaign_id": 0,
"campaign": {
"email_body": "string",
"email_pre_header": "string",
"design_template": "string",
"settings": {
},
"post_content": "string",
"post_excerpt": "string"
},
"contact_id": 0,
"disable_subscriber": "string"
}
Responses​
Email preview HTML generated successfully.
application/json
JSON
{
"preview_html": "string"
}