Invalid Mailchimp API Key error

1,881 views
Skip to first unread message

Rares

unread,
Sep 15, 2010, 8:30:04 AM9/15/10
to MailChimp API Discuss, IS-...@bluecasa.com
Hello MailChimp,

I'm trying to make a successful API call using the following HTTP URL:

http://api.mailchimp.com/1.2/?method=listSubscribe&apikey=d6a78b158048269fdd14a8ca07f80e0f-us2&id=4bfe60f6bd&email_address=rares.miron%40softvisioninc.eu&merge_vars=&output=json

and I receive the following error:

{"error":"Invalid Mailchimp API Key: d6a78b158048269fdd14a8ca07f80e0f-
us2 . You are accessing the wrong datacenter - your client library may
not properly support our datacenter mapping scheme.","code":104}

I've used the API key generated on the "API Keys and Info" screen,
that already contains the datacenter us2.

Could you please let me know how we can fix the above HTTP URL?

Thank you,
Rares

DavidMcL, Perceptive Logic

unread,
Sep 15, 2010, 8:40:27 AM9/15/10
to MailChimp API Discuss
The other thing you need to do is modify the url to be something
like....

http://us2.api.mailchimp.com/1.2/?output=json&method=listSubscribe
...... with the data center prepended before the 'api' part.

You'll also want to expire the api key that you just exposed in the
error message and created a new one.

David

On Sep 15, 7:30 am, Rares <rares.mi...@gmail.com> wrote:
> Hello MailChimp,
>
> I'm trying to make a successful API call using the following HTTP URL:
>
> http://api.mailchimp.com/1.2/?method=listSubscribe&apikey=d6a78b15804...

Chuck

unread,
Sep 28, 2010, 5:30:03 PM9/28/10
to MailChimp API Discuss
I too am receiving this error. I am an asp.net developer and found
some documentation on how to maintain our subscription lists through
mailchimp. I wrote the code and it worked great using the
PerceptiveMCAPI wrapper along with CookComputing.XMLSPCV2. We
switched over to a new account (the old one has US1 in the api key but
the new one has US2) and now I get this invalid api key error. The
key is valid in mailchimps admin site. I even tried generating a new
one but got the same error with the new key I entered. All the posts
I have read say I shouldn't be using the login method but I do not
make a call to a login method anywhere in my code. The is an API key
in my config file and that is it. Unless the wrapper is calling the
"login" method I don't know what I need to do to my code to fix it.
Is there a newer version of this assembly I need to get?

On Sep 15, 7:40 am, "DavidMcL, Perceptive Logic"
<perceptivelo...@gmail.com> wrote:
> The other thing you need to do is modify the url to be something
> like....
>
> http://us2.api.mailchimp.com/1.2/?output=json&method=listSubscribe
> ...... with the data center prepended before the 'api' part.
>
> You'll also want to expire theapikeythat you just exposed in the
> error message and created a new one.
>
> David
>
> On Sep 15, 7:30 am, Rares <rares.mi...@gmail.com> wrote:
>
>
>
> > Hello MailChimp,
>
> > I'm trying to make a successfulAPIcall using the following HTTP URL:
>
> >http://api.mailchimp.com/1.2/?method=listSubscribe&apikey=d6a78b15804...
>
> > and I receive the following error:
>
> > {"error":"InvalidMailchimpAPIKey: d6a78b158048269fdd14a8ca07f80e0f-
> > us2 . You are accessing the wrong datacenter - your client library may
> > not properly support our datacenter mapping scheme.","code":104}
>
> > I've used theAPIkeygenerated on the "APIKeys and Info" screen,
> > that already contains the datacenter us2.
>
> > Could you please let me know how we can fix the above HTTP URL?
>
> > Thank you,
> > Rares- Hide quoted text -
>
> - Show quoted text -

DavidMcL, Perceptive Logic

unread,
Sep 28, 2010, 5:36:13 PM9/28/10
to MailChimp API Discuss
There is a discussion on CodePlex -- please refer to that....

http://perceptivemcapi.codeplex.com/Thread/View.aspx?ThreadId=225880

Thanks,
David
Reply all
Reply to author
Forward
0 new messages