Join our Ask A Trainer Sessions and Chat With our Experts!

Error while adding contacts through PHP

NeilM595
Campaign Expert
0 Votes

Hello,

Am getting error of {"error_key":"unauthorized","error_message":"Unauthorized"}.
at time of adding contact to constant contact list.

1 REPLY 1
Courtney_E
Moderator
0 Votes

Hello NeilM595,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

Typically the Unauthorized (401) response indicates that the access token or API key that you used when making your call is not valid or has expired.

 

V3 API - 401: Unauthorized

https://v3.developer.constantcontact.com/api_guide/glossary_responses.html#401-unauthorized

 

For further assistance, please feel free to email us directly/securely at webservices@constantcontact.com with the API key that you are using to make the request, the full request(s) where you are receiving the response error (including URL, headers, timestamp, and request body), and the full response body so that we can so that we can better assist you in identifying the root cause of the issue?

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up