Email Scheduling
GET the HTML Preview of an Email Campaign Activity
Changed onUse this method to get the HTML preview of an email campaign activity. The HTML preview allows you to verify how the email campaign activity will look before you send it to contacts.
Custom code emails (format_type 5) use the Constant Contact account owner's contact information to process contact, custom field, and account variables in the preview.
This method returns the HTML preview encoded as a JSON string. You will need to decode the string before you can use it as valid HTML.
get/emails/activities/{campaign_activity_id}/previews
Request
- Base URLhttps://api.cc.email/v3
- URLhttps://api.cc.email/v3/emails/activities/{campaign_activity_id}/previews
- Auth
- OAuth 2Implicit: https://authz.constantcontact.com/oauth2/default/v1/authorizeScopes: campaign_data
- or OAuth 2Authorization code: https://authz.constantcontact.com/oauth2/default/v1/authorizeToken URL: https://authz.constantcontact.com/oauth2/default/v1/token scopes: campaign_data
Path parameters
campaign_activity_idstring uuid required
The unique ID for an email campaign activity.
Response
Request successful.
Example response
{
"campaign_activity_id": "4c08372c-957a-48b5-bc45-72c7f00796cd",
"from_email": "jdodge@constantconatct.com",
"from_name": "Jake Dodge",
"preheader": "You don't want to miss this.",
"preview_html_content": "<html><body> <a href=\\\"http://www.constantcontact.com\\\">Visit ConstantContact.com!</a> </body></html>",
"preview_text_content": "Email Content",
"reply_to_email": "jdodge@constantcontact.com",
"subject": "Informed Daily Digest"
}Changes
- info
the endpoint scheme security
api_keywas removed from the API
- info
- info
endpoint added
- info