We're making it easier to get around Constant Contact with a brand new left navigation. Not all accounts have that change yet, so if your navigation looks different from our articles, that's why–but everything from the top can now be found on the left!

Email and Digital Marketing
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Obtain a List ID for APIs

Article: 000005892
Updated: December 7, 2021

Get your List ID to use with APIs that require it in order to import to a list

Some Application Programming Interfaces (APIs) or plug-ins require a List ID in order to import to a specific contact list. If you need to provide a List ID you can always go through our Developer Portal or email webservices@constantcontact.com for the integration/application you are using. 

 

Developers

Developers can use the built-in functionality to get lists in one of the SDKs. They can also use Constant Contact's IO docs or a REST client to make a Get /lists API call.

 

Non-Developers

Non-Developers can use our API to retrieve the List IDs from their accounts. The information retrieved includes the List Name and List ID. If you are using a 3rd-party integration that is asking you to generate List IDs:

  • We have two different versions of our API. The steps you take to generate List IDs will depend on what version of our API the integration you are looking to connect with uses, as they are created through different platforms and are not cross compatible.
  • The list ID format will be dependent on whether the integration uses the legacy V2 API (10-digit list ID), or the current V3 API (32-digit list ID) version of our API, so you may need to find out which format you need.


v3 API
v2 API

v3 API

If you need a 32-digit list ID for your integration, then it uses our newer v3 API:

  1. Log into your Constant Contact account.
  2. Open the v3 API Developer Portal.
  3. Click API References.
  4. Click Get Lists Collection > GET Lists Collection.
  5. Scroll down to the Test this endpoint section.

    v3 API Developer Portal page, API References tab selected, API Reference menu with Contact Lists menu expanded and GET Lists Collecton selected, and Test this endpoint options
     
  6. Click the Oauth button and grant permission for the API to access your Constant Contact account.
  7. Click the Try button to view all of your lists displayed here, with their 32-digit list IDs. 
    { 
    "list_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "name": "General Interest", 
    "favorite": false, 
    "created_at": "2021-01-00T00:00:00Z", 
    "updated_at": "2021-01-00T00:00:00Z"
    }

For more help using our v3 API, please see the API Docs section of our Developer Portal.

 

v2 API

Follow these steps to use our IO Docs to make the API call through our legacy v2 API:

  1. Log into your Constant Contact account.
  2. Open the v2 API dashboard. You'll need to sign in, or create a new account and register your app if you don't already have one. The login credentials are not the same as your Constant Contact account.
  3. Click Apps & API Keys.
  4. Click Applications.
  5. Click Create a New Application. This is only used to make the connection with your Constant Contact account to get the List IDs.

    v2 API Developer Portal, Apps & API Keys tab selected, Applications tab selected, and Create a New Application button
     
  6. Enter anything into the Application Name field. You don't need to fill out anything else.
  7. Review and check the box to agree to our Terms of Service.
  8. Click Register Application.

    v2 Developer Portal Application Registration page, Register Your New Application section and Application name field, Terms of Service section with "I agree to the terms of service" option, and Register Application button
     
  9. Click the API Tester tab. (The API/Key is prefilled with whatever you put in the Application Name field in step 5.)
  10. Click Get Access Token.

    v2 API Developer Portal with API Tester tab selected, App/Key field filled in, and Get Access Token button
     
  11. Click Allow. If you're not logged into your Constant Contact account, you're prompted to log in first.

    Constant Contact Allow Access? page and Allow button
     
  12. Copy the access token and click Done. We recommend saving the access token future use.

    v2 Developer Portal access token page, Your access token is field with token populated, and Done button
     
  13. Paste the access token into the Enter access token field.

    v2 API Developer Portal with API Tester tab selected, and Enter access token field
     
  14. Scroll down to the ContactList methods section and click the GET button next to the "Retrieve a collection of ContactLists" option.
  15. Click Try it!

    v2 API Developer Portal with API Tester tab selected, ContactList methods section, Retrieve a collection of ContactLists section expanded with GET button, and Try it! button
     
  16. In the Response Body section, you can see all of your lists displayed with their 10-digit list IDs. 
    {
    "id": "xxxxxxxxxx",
    "name": "General Interest",
    "status": "HIDDEN",
    "created_date": "2021-01-01T00:00:00.000Z",
    "modified_date": "2021-01-01T00:00:00.000Z",
    "contact_count": 0
    
    

For more help using our v2 API, please see the API Docs section of the v2 Developer Portal.


Questions?

Ask the Community

Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center