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.

authenticate user before calling https://campaign-ui.constantcontact.com/campaign/ajax/campaigns?%0A

Occasional Participant

authenticate user before calling https://campaign-ui.constantcontact.com/campaign/ajax/campaigns?%0A

current process:

step 1. Log in to constant contact

step 2. open this link in the browser 

step 3. copy the result set and save as .json file


we want to automate the process. what is the cleanest way to automate step 1 and 2? 

we have an apikey if that is needed.


Thank you



Hello TaylorM7,


The way you are looking to access the account and pull up data is not something that is supported. Actually it should not be used at all. Using one of our internal URLs in this manner is not the intended use and would be best if it did not continue.


I am happy to give you information on how to do this with your API key however. You will first want to check out the main API Documents section here to get an overview of how to use our API. http://developer.constantcontact.com/docs/developer-guides/overview-of-api-endpoints.html


The link you provided looks like you are trying to get the summary of your campaigns in the account. So you will need to "log in" to the account usually using oAuth2 which can be found here. http://developer.constantcontact.com/docs/authentication/authentication.html


From there you will use a GET method to pull the summary status of your campaigns and that can be found here.  http://developer.constantcontact.com/docs/email-campaigns/email-campaigns-collection.html?method=GET


You might instead want the reporting details of your campaigns and that can be pulled using this information. http://developer.constantcontact.com/docs/campaign-tracking/summary-report.html


Let me know if this helps out.

Jimmy D.
Tier II API Support Engineer
Developer Portal

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

Visit Page