We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

How can I filter out deleted campaigns from the GET request for SENT campaigns?


How can I filter out deleted campaigns from the GET request for SENT campaigns?

When I use the API to get SENT campaigns, DELETED campaigns come back as part of the response.

I only want to get campaigns that were SENT but not deleted. How can I do that?


This is the endpoint I am using:





After looking into this, the discrepancy you're seeing is related to a set of newer features around campaign management that are only available to some accounts (which includes yours). At present for these accounts deleteing a campaign in the UI is not currently reflecting that change in API, and vice-versa. The end-result of this is that for your account the only way to have those campaigns appear as deleted in the API is to delete them with the API as decribed here: http://developer.constantcontact.com/docs/email-campaigns/email-campaign-resource.html?method=DELETE


This is something that we have in our backlog to resolve, but I don't yet have a specific time-frame for when we will be able to get this out to production.


if you have any questions, please feel free to ask!



Elijah G.
API Support Engineer
Developer Portal

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

Visit Page