Showing results for 
Search instead for 
Did you mean: 

Invalid verification code


Invalid verification code

I saw two other posts opened with the same error message but they did not provide sufficient information.


I'm using the ruby wrapper for Constant Contact:


auth =
api_key: <key>,
api_secret: <secret>,
redirect_url: <return_url> )


Then I get the autorization url:




I'm going through the OAuth2 flow. And then I'm redirected to my application. So far so good. When I try:




I get the "Invalid verification code" error. Any tips on what may be happening here?

CTCT Employee

Re: Invalid verification code

Hi Marius,


If you're waiting any period of time between getting the verification code and using it, that's probably the issue. The verification codes are live for only a few seconds before they expire. You want to automate this to make sure the get access token step is completed immediately after the first call is made to begin the authentication flow.


Best Regards,

Shannon Wallace

Partner API Support Engineer