Title: Another API Error
Last modified: May 18, 2022

---

# Another API Error

 *  Resolved [primalgraphics](https://wordpress.org/support/users/primalgraphics/)
 * (@primalgraphics)
 * [4 years ago](https://wordpress.org/support/topic/another-api-error/)
 * I searched but couldn’t find any results that would actually work for me, but
   I’m having what seems like a common issue with Mail Chimp API and this plugin.
   Yesterday I created a brand-new Mail Chimp account, Generated an API, Copied 
   it into the Plugin, and get an error connecting. I disabled all plugins except
   MC4WP, but nothing changed, I contacted our webhost to make sure Curl and everything
   was up to date, I made sure the MC4WP was up to date, I tried a new API, I deleted
   the Plugin and reinstalled it, nothing seems to work, the error I get is:
    ———————————————–
 *     ```
       Mailchimp returned the following error:
       Unauthorized. API Key Invalid. Your API key may be invalid, or you've attempted to access the wrong datacenter.
   
       Request:
       GET https://us14.api.mailchimp.com/3.0/?fields=account_id
   
       Response:
       401 Unauthorized
       {"type":"https://mailchimp.com/developer/marketing/docs/errors/","title":"API Key Invalid","status":401,"detail":"Your API key may be invalid, or you've attempted to access the wrong datacenter.","instance":"d472aaed-dfe4-502e-4efd-370fb296e4a0"}
       ```
   
 * ——————————————————–
    I also added the API Key to a test URL I found on another
   support thread that returned this error: {“type”:”[https://mailchimp.com/developer/marketing/docs/errors/&#8221](https://mailchimp.com/developer/marketing/docs/errors/&#8221);,”
   title”:”Forbidden”,”status”:403,”detail”:”The API key provided is linked to datacenter‘
   us14′”,”instance”:”665ec9ef-a125-72b4-eb1c-adbe8f2c5a16″} ————————————————————
   Thank you for any assistance you can provide
 * Dave
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fanother-api-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [4 years ago](https://wordpress.org/support/topic/another-api-error/#post-15657813)
 * The error means the API key is invalid or doesn’t have sufficient rights.
    Make
   sure you use a normal API key, not the Mobile SDK API key.
 * When you create the test URL, make sure the URL starts with us14. eg
 * [https://us14.api.mailchimp.com/3.0/?fields=account_id&apikey=YOUR](https://us14.api.mailchimp.com/3.0/?fields=account_id&apikey=YOUR)
   KEY HERE
 * I recommend you create (another) new API key
 *  Thread Starter [primalgraphics](https://wordpress.org/support/users/primalgraphics/)
 * (@primalgraphics)
 * [4 years ago](https://wordpress.org/support/topic/another-api-error/#post-15657838)
 * Okay, apparently, I was following their instructions to make the SDK API Key,
   Problem Solved.
 * Thank you
    Dave

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

The topic ‘Another API Error’ 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: [primalgraphics](https://wordpress.org/support/users/primalgraphics/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/another-api-error/#post-15657838)
 * Status: resolved