REST API with Constant Contact, OAuth2

Hi Everyone,

I'm trying to set up a REST api resource in retool with constant contact's V3 API. However, I get stucked on setting up the OAuth2. Any one can help me or provide some guidance? This is the first time i'm dealing with REST API and OAuth.

The constant contact api doc is here:

In particular I'm confused with the URL parameters and Authentication/Token URL... since there is already an input space dedicated for Client ID in the setting page, is it still necessary to put that in the URL parameters? And how do I include that in the Auth URL?

Please help......

1 Like

Happy to help! You're right to be looking at Constant Contact's OAuth2 Server Flow docs -- we'll use that server flow to connect to API with Retool.

Since Retool has support for the OAuth 2.0 authentication you don't need to worry about URL parameters, rather you can fill in the following fields. I've also included screenshots with relevant fields filled in. To learn more about how OAuth 2.0 authentication works check out our docs on authentication.

Base URL:
Headers: Authorization: Bearer OAUTH2_TOKEN
Authentication: OAuth 2.0
You'll need to copy the OAuth callback URL into Redirect URI field in your Constant Contact application dashboard.
Authorization URL:
Access Token URL:
Client ID: The API Key for your Constant Contact application
Client Secret : Secret for your Constant Contact application. To get secret select "Generate Secret" in your Constant Contact application dashboard.
Scopes: Up to you. I used account_read account_update contact_data.

Once you've got those fields filled out save your resource and then test the connection! I personally like to write a test query in the Query Library to make sure I'm getting the right results :slight_smile:.

Hope this helps! Let me know if you have any more questions.

  • Jane


Thanks very much for your prompt reply with detailed guidance! I was able to establish the OAuth2 connection and successfully add the api as a resource! Thank you!