API: how to have custom code per-mailing, not per-contact (ie news in brand template)


What we want to do is send out simple news items on our own standard email template using the API.

So I thought this would mean having a template on constant contact, and then sending a campaign with a couple of changed custom items, like the news text and the date.


So it seems perhaps we could create a campaign and save it as a draft.   Each time we want to send a news, we use the "campaign id" and "campaign activity id"  for that one campaign, and PUT the list of current recipients and do the send. 

BUT:  I don't see a way to change a piece of the content of the campaign (ie our current news item) that is not per-contact.  What am I missing?  

Thank you.




Hello TinaI37,


Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.


To automate creating/updating a template via the API, you'd need to utilize HTML code to create a Custom Code email, as the API does not offer support for email campaigns built within the editor. Essentially you'd build your application to update the lines of code that you specify (images/links/text) and then format and send that HTML via the API to your Constant Contact account.


Create the HTML code for your Custom Code email template.

[Designing HTML for Custom Code Emails]



Use your template code to create an email draft.

[Create an Email Campaign]



Please have a look and let us know if you have any other questions!


Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Developer Portal

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

Visit Page


API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up