Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

How to generate a Form ID from Constact Contact for our Newsletter sign up for on our website

user046566
Rookie
0 Votes

Hello everyone, 

 

We have a custom Newsletter sign up form we built on our website and we just want to generate a constant contact form ID s so that new subscribers will be added to our constant contact list. However, unlike other newsletter platforms, we are not seeing a clear option on how to generate a form ID on any of our contact lists. Does anyone have a work around as we do not wish to use the form template from the Constact Contact website 

1 REPLY 1
Courtney_E
Moderator
0 Votes

Hello user046566,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

We don't offer any value specifically called "Form ID". All 3rd party developed integrations, forms, and plugins that connect with Constant Contact use our public facing APIs.

 

If you are using a pre-built 3rd party integration/form/plugin, typically it will either ask you to log in and grant permission to access your account, or request that you provide an API key and other private credentials such as: client secret, access token, or list ID.

 

If you are trying to use a 3rd-party app that is asking you for an API Key:
Usually an application developer will generate their own API Key that lets their app integrate with Constant Contact, however some developers require you to provide them with an API Key. Since this process was designed to be done by the app developers themselves, it can be confusing for end users to find or generate this information.

 

We have two different versions of our API, so the steps you take to generate an API key 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.

 

If the app you are using is asking you for an API Key and Secret, then it most likely utilizes our V3 API.  Your 3rd party integration may also provide you with the Redirect URI to add to your key. Follow steps 1-3 at the following link.: https://v3.developer.constantcontact.com/api_guide/apps_create.html

 

If the app you are using is asking you to also provide an “Access Token” with your API key, then it most likely utilizes our legacy V2 API, and you'd want to follow the steps at the following link instead:

https://community.constantcontact.com/t5/Community-News/How-to-generate-an-API-Key-and-Access-Token/...

*You will need to create a Mashery login for V2, as it does not use the same UN/PW as your Constant Contact account

 

The list ID format will be dependent on whether the script 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 ask them which format they need (or just generate both sets). 

 

A lot of 3rd party integrations ask for customers to provide list IDs when setting them up, so we’ve made the following step-by-step article that shows regular users how to get both types of list IDs. All you’ll need is the credentials for your Constant Contact account and to follow the steps in the link below. Within the article, the first section is for our current V3 API, but if you scroll down, there are instructions for our legacy V2 API as well:

 

Obtain a List ID for APIs

https://knowledgebase.constantcontact.com/articles/KnowledgeBase/5892-obtain-a-list-ID-for-apis

 

Alternately, if you are instead looking to build/develop your own website form, or have already developed a form yourself, you can program it to connect with our API and sync contacts over automatically by using our Sign-Up Form Endpoint, which allows you to add contacts to an account without having to make a separate API call to check if the email address already exists for a contact in the user account.

 

Constant Contact provides developers with free access to our V3 API endpoints for developers building their own application for integration. You can get started using our API by visiting our documentation here:

https://v3.developer.constantcontact.com/api_guide/getting_started.html

 

Additionally, you can utilize our API Reference Page to find body schemas & values, as well as test the functionality of our available endpoints to see how they will work once programmed within your application:

https://v3.developer.constantcontact.com/api_reference/index.html



Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up