Between 8:00 - 9:00 am ET on 10/25 we need to take our site down to make updates. We recommend logging out before 8:00am ET and not using your account during this time. Thank you for your patience while we make these important updates.

API Code error 0 :401 Unauthorized

Regular Participant

API Code error 0 :401 Unauthorized

When I paste this url https://api.constantcontact.com/ws/customers in my browser and put my username and password in it doesn't work. I've tried every username and password that I have and nothing. The reason I put this url in my browser is my API Code gives my 0 :401 Unauthorized on my web page.

1 REPLY 1
Employee

The URL you are trying to access is complete. Try accessing:

https://api.constantcontact.com/ws/customers/{YOUR_USERNAME}/


Also, make sure that the username that you provide in the pop-up is your api-key, followed by a '%', and then your constant contact login name like such:

XXXXXXXXXXXXXXXXXXXXXXXXXXXX%USERNAME


 Also, if you are doing this for testing purposes, I recommend using RESTClient.

Dan H

Support Engineer, Constant Contact

Developer Portal

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

Visit Page