cancel
Showing results for 
Search instead for 
Did you mean: 

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

New Member

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:

https://api.constantcontact.com/v2/emailmarketing/campaigns?api_key=APIKEY&access_token=ACCESSTOKEN&...

1 REPLY 1
Honored Contributor

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

Hello,

 

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!

 

Sincerely,

Elijah G.
API Support Engineer