How to generate an API Key and Access Token

David_B.
Employee

Typically 3rd-party application developers will have their own API Key which lets their app talk to Constant Contact, however some developers may require you to provide them with your own API Key and Access Token. If you are using an integration that wants an API Key and Access Token, but are just not sure where to find those, then this step-by-step guide is for you.

 

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.
    Application Name
  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.

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.)

 

  1. Click the gray Get Access Token button
    Get Access Token

  2. On the window that appears, click the blue I already have an account link
    I already have an account

  3. Log in to your Constant Contact account (not your developer account) and click Allow

You will then be provided with your Access Token, which you can now use along with your API Key in your integration!

Access Token

 

So that you can easily use them where you need to, we recommend you save this information somewhere, such as a Word or text document, however you can always log in to your developer account to see your API Key, and follow the steps above to view your Access Token again.



Was this guide helpful? What other types of information would you like to see guides on? We're happy to help get you the information that you need! Let us know in the comments!

16 Comments

Resources

Marketing Digest

Check out marketing advice, tips, and tricks. All from our Constant Contact experts

Visit the blog

  • Avatar

    Featured Article

    Announcing Campaign Builder!

    Save time and build effective marketing campaigns with Campaign Builder.

    See Article
  • Avatar

    Featured Thread

    Casual Conversations: What is your favorite hobby?

    Do you like to paint? Play sports? Garden? Whatever the hobby may be, join the conversation and tell us about it!

    View thread
  • Avatar

    Featured Article

    Community Roundup: May 2024

    Check out all the great articles, discussions, and events for the month of May!

    See Article