# Mailgun secret API key rejected

**URL:** https://meta.discourse.org/t/mailgun-secret-api-key-rejected/61852
**Category:** Support
**Created:** [2017年四月30日 10:27 UTC](https://meta.discourse.org/t/mailgun-secret-api-key-rejected/61852 "2017-04-30T10:27:45Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![oxxi](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@oxxi](https://meta.discourse.org/u/oxxi)
#### Post date: [2018年八月3日 21:14 UTC](https://meta.discourse.org/t/mailgun-secret-api-key-rejected/61852/20 "2018-08-03T21:14:06Z")

</div>

Hi, it’s been fixed. Forgot to update this thread. Here’s the link:

> [@Current Mailgun API key does not work](https://meta.discourse.org/t/current-mailgun-api-key-does-not-work/93661):
>
> It appears that Discourse has hard-coded a regex check for the Mailgun API key. Mailgun’s API keys have undergone a format change to prevent spammers from scrapping publicly accessible repositories for Mailgun API keys. The regex check would need to be addressed to allow API keys that do not match the old naming convention or remove the restriction on the discourse instance locally.

---

_[View the full topic](https://meta.discourse.org/t/mailgun-secret-api-key-rejected/61852)._
