V3: HTML Content - Email Activites

JamesC400
Occasional Participant

V3: HTML Content - Email Activites

Hi,

Usig V3 API, how would one get the body of an email_activity?  I tried to use ?include=html_content just like the API docs said but its giving me the error below. I tried it using the example one https://v3.developer.constantcontact.com/api_reference/index.html#!/Email_Campaigns/retrieveEmailCam... as well.

 

https://api.cc.email/v3/emails/activities/xxxxxxx?include=html_content

 

[ { "error_key": "validation.error.emailcampaignactivity.include.not.supported", "error_message": "Requested EmailCampaignActivity does not have the specified include" } ]

1 REPLY 1
Jimmy_D
Moderator

Hi @JamesC400,

 

You are most likely requesting the HTML content of an email campaign that was created in our 3G editor. The HTML content is not available through the API for these campaigns. Only email campaigns that are listed as "custom code" in the website UI will display the HTML content in the API.


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page