The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Issue with Access/Refresh tokens

Occasional Participant

Issue with Access/Refresh tokens

So, I've been successfully using the API since September using Java/okhttp3.


Since yesterday, I've been having issues.  When I refresh the tokens I get a 200 response with the tokens but when I immediately use the token's provided, I get a 401 right after.  Turns out to be a nasty loop.


Has anyone else experienced this?




Occasional Participant

Re: Issue with Access/Refresh tokens

I was just about to create a post about this.


We have been using the v3 API since some weeks ago and all of sudden it stopped working.


We have investigating our code and came to the conclusion the issue is in the API side.


We can successfully make the authorization code request and receive the code.


Then we are able to exchange the code for an access token.


We are also able to use the refresh token in order to get a new access/refresh token.


The problem is that when we use the access_token to perform API requests, like:


curl -X GET \
'' \
-H 'Content-Type: application/json' \
-H 'Cache-Control: no-cache' \
-H 'Accept: application/json'


We always get the response:



Occasional Contributor

Re: Issue with Access/Refresh tokens

I just posted the same issue in the 401 error forum.  I have been having the same issue since yesterday.  API calls were working for several days, and now I can refresh the Access Token but get a 401 error x-amzn-ErrorType: UnauthorizedException.

Occasional Participant

Re: Issue with Access/Refresh tokens

Ugh.  Thanks for letting me know about that forum.  I didn't see it.  I'll post there, too.


Re: Issue with Access/Refresh tokens

Hello Everyone,


Sorry for the delayed response. As I'm sure you are already aware this issue has been resolved. We had a temporary issue with some certificates and they have been updated. Please let us know if you still see this problem.

Jimmy D.
Tier II API Support Engineer
Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More