# Mandrill -  Invalid API key

**URL:** <https://forum.mautic.org/t/mandrill-invalid-api-key/1980>\
**Category:** General Discussion\
**Created:** [June 18, 2015, 5:35pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980 "2015-06-18T17:35:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregy](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gregy](https://forum.mautic.org/u/gregy)\
**Post date:** [June 18, 2015, 5:35pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/1 "2015-06-18T17:35:06Z")

</div>

Hi guys,  
  
  
  
Setting up Mandrill to work with Mautic, we get this message “Invalid API key”.  
  
  
  
Are we missing something? I don’t see anywhere in Mautic to enter the API Key.

---

<div class="post-metadata">

**Author:** ![zennerd](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zennerd](https://forum.mautic.org/u/zennerd)\
**Post date:** [July 21, 2015, 4:09am UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/2 "2015-07-21T04:09:26Z")

</div>

Chad,  
Thanks for the follow up. I deleted the old version and installed the new one and it works great now!

Derek

---

<div class="post-metadata">

**Author:** ![gregy](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gregy](https://forum.mautic.org/u/gregy)\
**Post date:** [June 18, 2015, 5:35pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/3 "2015-06-18T17:35:06Z")

</div>

Hi guys,

Setting up Mandrill to work with Mautic, we get this message “Invalid API key”.

Are we missing something? I don’t see anywhere in Mautic to enter the API Key.

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [June 18, 2015, 5:41pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/4 "2015-06-18T17:41:21Z")

</div>

Hi Steve!

Set the Mailer Username as the API key in Mautic’s configuration since Mandril uses the API key for logging in. “Mailer Username” is generically used across all the mailers. We’ll try to catch the “Invalid API key” message from Mandrill and return something more Mautic centric to make it a bit clearer on what’s missing.

Thanks,  
Alan

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [June 18, 2015, 5:41pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/5 "2015-06-18T17:41:54Z")

</div>

Sorry, I meant "Username for the selected mail service " 🙂

---

<div class="post-metadata">

**Author:** ![zennerd](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zennerd](https://forum.mautic.org/u/zennerd)\
**Post date:** [July 19, 2015, 1:35pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/6 "2015-07-19T13:35:14Z")

</div>

Hey Team,  
I am also getting this error, even after putting the API key in for "Username for the selected mail service ". I’ve also tried it with and without a password. I also generated a new API key, too.

This is self hosted on GoDaddy.

Thanks for any suggestions,

Derek

ps Awesome software by the way.

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [July 20, 2015, 3:15pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/7 "2015-07-20T15:15:53Z")

</div>

Hi Zennerd:

So you will need the mandrill username as the API key, and then the api key from mandrill as the API secret key.

You might also need to set Mandrill to allow the domain name to be used with that API Key. Also after you set the keys, try dleeting app/cache and letting it rebuild its self, its possible it isn’t deleting properly and that’s causing issues.

---

<div class="post-metadata">

**Author:** ![mfarmer](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mfarmer](https://forum.mautic.org/u/mfarmer)\
**Post date:** [September 25, 2015, 5:13pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/8 "2015-09-25T17:13:50Z")

</div>

This happened to me…

1- I added my domain name in Mandrill to the Settings \>\> Domains \>\> Sending Domains list  
2- Then I renamed the two folders inside of “…/app/cache”.  
3- Finally I used the Mandrill user name as the username and the Mandril API key as the password.

IT WORKED!! This is just a simple summary of what Chad said above. Thanks Chad!

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/mandrill-invalid-api-key/1980/9 "2020-02-02T22:58:08Z")

</div>


