cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SinServer
Frequent Visitor

MailChimp API 401 error

I'm trying to do a simple get request on MailChimp's API using the 'Ping' feature to test API health and i keep getting an error message stating i've not provided my API key when I have, i tried creating a new API but still have the same issue, please see the action in the image; the response i get is:

{
  "title""API Key Invalid",
  "status"401,
  "detail""Your request did not include an API key.",
}
MailChimp Example.png
 
 
Any help would be very much appreciated as I don't have a clue what I'm doing wrong.
1 ACCEPTED SOLUTION

Accepted Solutions
JMu
Resolver I
Resolver I

Hi,

 

I think the problem is with the headers you are using.

 

I looked at https://mailchimp.com/developer/marketing/docs/fundamentals/#connecting-to-the-api

So I think you should change the header "apiKey" to "Authorization" and then in the value field put "Bearer <yourkey>"

 

Or as the mailchimp allows the http basic authentication you enable that under the "show advanced options" then set the username to "anystring" and password to your apiKey 

 

View solution in original post

1 REPLY 1
JMu
Resolver I
Resolver I

Hi,

 

I think the problem is with the headers you are using.

 

I looked at https://mailchimp.com/developer/marketing/docs/fundamentals/#connecting-to-the-api

So I think you should change the header "apiKey" to "Authorization" and then in the value field put "Bearer <yourkey>"

 

Or as the mailchimp allows the http basic authentication you enable that under the "show advanced options" then set the username to "anystring" and password to your apiKey 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,747)