Swap out your API keys with no downtime

Written by Mailgun Team

Categories: Security | What's New

1 minute read time

Regularly changing your API keys is a good practice to maintain security for your application. Today, we’ve just rolled out a new feature that makes this easy, and doesn’t require you to pause sending email long enough to swap out your API keys. Here’s how it works:

When you click on ‘Regenerate API key’ on the homepage of your Mailgun control panel, you’ll be given a new API key. Your old key will also continue to work for 48 hours before automatically expiring. This gives you 2 days to update your code with the new key.

Once you’ve swapped out your keys, you can immediately expire the old key by clicking on the link provided.

We hope this small addition makes it easier to maintain security for your application and your users.

Happy emailing,

The Mailgunners

Published on: May 2, 2014 | Modified on: June 13, 2018

Stay up-to-date with our blog & new email resources

We'll let you know when we add new email resources and blog posts. We promise not to spam you.