Title: Unauthorized. API Key Invalid.
Last modified: May 13, 2020

---

# Unauthorized. API Key Invalid.

 *  Resolved [emass2020](https://wordpress.org/support/users/emass2020/)
 * (@emass2020)
 * [6 years ago](https://wordpress.org/support/topic/unauthorized-api-key-invalid/)
 * When I try to use my API from mailchimp, I get the error below. I’ve generated
   new ones and they don’t work. I’ve also talked to my host provider and the PHP
   cURL is up-to-date.
 * Unauthorized. API Key Invalid. Your API key may be invalid, or you’ve attempted
   to access the wrong datacenter. Request: GET [https://us8.api.mailchimp.com/3.0/?fields=account_id](https://us8.api.mailchimp.com/3.0/?fields=account_id)
   Response: 401 Unauthorized – {“type”:”[http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/&#8221](http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/&#8221);,”
   title”:”API Key Invalid”,”status”:401,”detail”:”Your API key may be invalid, 
   or you’ve attempted to access the wrong datacenter.”,”instance”:”c7ef8d6d-d36b-
   4ca9-8cfe-e5ddac6d5fe9″}

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [6 years ago](https://wordpress.org/support/topic/unauthorized-api-key-invalid/#post-12830092)
 * Please send us an email about this on support @ mc4wp.com
 * Thank you!
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [6 years ago](https://wordpress.org/support/topic/unauthorized-api-key-invalid/#post-12863489)
 * Just for others reading along, generating another new API key solved it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Unauthorized. API Key Invalid.’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

## Tags

 * [api key](https://wordpress.org/support/topic-tag/api-key/)

 * 2 replies
 * 2 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/unauthorized-api-key-invalid/#post-12863489)
 * Status: resolved