How to get your Constant Contact API Key?To generate an API Key, you will first need to create or log in to a developer account at https://constantcontact.mashery.com/ This will be separate from your normal Constant Contact account.
Once you have created an account and verified the email address (or logged in to your existing developer account), you are ready to register a new app and get an API Key here: https://constantcontact.mashery.com/apps/register
1. Fill out the Application Name field. This should be the name of the application or integration you are connecting your Constant Contact account to.
2. Ignore all of the other fields and scroll to the bottom of the page.
3. Check the box indicating you agree to the terms of service (we’re sure you read it all) and click Register Application.
You will then be presented with your API Key information.
Now that you have your API Key, you are ready to generate an Access Token. The easiest way to do so is to use our API Tester located here: https://constantcontact.mashery.com/io-docs
You should see your API Key pre-filled in the App/Key field.
(If you don't, click the Sign In link at the top right of the page and log in to the Mashery developer account you created earlier. Once you are logged in, the page will refresh and you will see your app and API Key listed there.)
How to get your Constant Contact List ID?
Some 3rd party integrations with Constant Contact are requiring users to know the list Id instead of the list name for some actions. This post explains how you can obtain the list Ids for all of your contact lists.
As a workaround, you can use the following steps to obtain the list ID’s in your account:
- Go to http://developer.constantcontact.com/api-keys.html and follow the 3 steps under "Request an API Key.”
- After you generate your access token, go to the IO Docs page (or stay there if you were already there): https://constantcontact.mashery.com/io-docs.
- Fill in your API Key and access token near the top of the page.
4. Scroll down to the ContactList methods, and click on GET: Retrieve a collection of ContactLists.
5. Click Try It!. This will send a request to your account to retrieve all of the lists in your account.
6. Scroll down to the Response Body section, and you will the see the data for all lists in your account; each list has 6 lines of data, one of which is the id, shown here: