I have a subscription form and would like to confirm the user before sending them to the next step ( make sure its not fake email) , is there a way to verify the users email is in the list and is a subscriber? I would like to retrieve the verified users email with json.
While our API does not have any special options for confirming contacts, Constant Contact does provide some tools that you can use create lists with confirmed opt-ins only. The first is to enable account-wide confirmed opt-in for your Constant Contact account. This makes it so that every time someone signs up, they will be sent a confirmation email. Until that contact responds to that confirmation email, they will be in an awaiting confirmation status and cannot be sent any email campaigns or be placed on any lists.
Once the contact confirms their subscription from the email they received, they will be placed on to the lists associated with the signup form that they used. They will also have their status changed from Awaiting Confirmation to Confirmed. If you were to enable this feature, the API would be able to return a list of all active contacts (which will include all contacts that are Confirmed) as well as having the option to return a list of contacts who have not yet confirmed their subscription. You can read about the Contacts Collection API endpoint here: http://developer.constantcontact.com/docs/contacts-api/contacts-collection.html
You can read about Confirmed Opt-in Here: https://knowledgebase.constantcontact.com/articles/KnowledgeBase/5533-obtain-permission-to-send-emai...
As an additional option, we also provide the ability to have a "Soft Confirm" header that can be added to any email with a permission reminder. This provides a way for contacts to be given the Confirmed status without requiring it for all new signups. You can read about Soft Confirm here: https://knowledgebase.constantcontact.com/articles/FAQ/5754-what-is-a-soft-confirm
If you decide to not make use of our Confirmed Opt-in tools, then every contact that fills out your form will simply be added to your contact lists. If there is any issues with adding that contact, the API will return a 40X error status with a message explaining the issue.
If there is any more information that we can provide or if you have any questions, please let us know!
Great news! Would I be able to retrieve the .json file with the url? and how should the url look like? I know this is part of it
I want to specify the EXACT contact by email address to retrieve information for
You can absolutely get the details for a specific contact by email address. In the documentation that I linked above, you can see that there is a parameter available for that API endpoint that allows you to search by email address. The full request would look like this:
URL: https://firstname.lastname@example.org&api_key=APIKEY Method: GET Headers: Authorization: Bearer ACCESSTOKEN
As you'll notice in the information above, you will need both an API Key and an Access Token(This piece is what grants access to your account). You can find information on getting your API Key and access token here: http://developer.constantcontact.com/api-keys.html
If you have any questions or difficulty, please let us know!
View API documentation, code samples, get your API key.Visit Page