Together at last: Postman meets Mailgun

Looking for a more visual approach to our RESTful API? Postman is the solution for you. Mailgun walks you through the setup process, read more –



Mailgun has, and always will be, an email service for developers. No matter the development environment or programming language you’re comfortable in, we’ve got libraries for that. We’re all about adapting and providing a better service, and that means flexing our more front-end capabilities too. That’s why we’ve made sure that you can use Mailgun in Postman.

Wait a minute, what’s Postman?

Postman is for the people in your company that have an interest in exercising a REST-based API but aren’t comfortable with setting up a development environment, are confused by parameters, or have an episode of Westworld to watch and they might not have time to learn cURL. Postman makes APIs approachable by integrating them in a graphical interface.

APIs can be daunting to someone who isn’t familiar with them, and that can turn people away who should otherwise know more about them and how they play a role in their app or business. Postman empowers those people to feel like a programmer with programmer adjacent features like being able to set up environments that you can easily switch APIs between.

TL;DR – Postman makes your environment a little more user-friendly and helps non-programmers gain a little bit of programming understanding.


Now if you get what we’re saying and already have Postman, click the button below and go on your way. It includes a Mailgun-specific environment so that you can plug in the following few items and be in business:

  • API_KEY – found in the console under Account – Security

  • BASE_URL – US by default; simply change to for EU

  • mydomain – many of our API endpoints have the domain in the request, so paste in your domain here

  • token – leave this guy alone entirely!

Done! You’re off and running! Go ahead and give the Get domains API a try – it’s ready to go without any further parameters.


If Postman is sounding a little confusing, don’t worry! We’re going to walk you through downloading Postman and how to set it up. First, go ahead download Postman. Click the button below to import the Mailgun collection into Postman, or click this link and import as demonstrated below:

GIF of how to import Mailgun collection into Postman

Then, go fetch your API key from the dashboard:

GIF of how to get your private API key from Mailgun's dashboard

Also, go ahead and grab the domain you will be querying on:

A GIF showing you how to grab your domain from Mailgun

Paste both your API key and Domain into the Mailgun Postman Environment, demonstrated below:

GIF showing how to paste API key in Postman
GIF showing how to paste your domain on Postman

Finally, make your first request! Expand the collection, expand Domains, and hit Get domains. Then, click Send.

GIF showing how to get domains on Postman


We hope you enjoy using Mailgun in Postman and show it to some of your coworkers who want to get their feet wet with our API. Hopefully, they feel a little less intimidated about APIs and gain a better understanding about what you do instead of giving you a blank stare when you bring up the topic. We’re really excited about it – like geeking out over Westworld spoilers excited. If you end up doing something really impressive with Mailgun and Postman, tweet at us! We’d love to see your work.

Sign Up

It's easy to get started. And it's free.

See what you can accomplish with the world’s best email delivery platform.

Related readings

Email validation – Why is it vital for your inbox?

We all have those moments when we get nervous and need to double-check ourselves. Did we fill in the right answer bubbles on a test? Did we type in the right password when...

Read more

How to send transactional email in a NodeJS app using the Mailgun API

Sending transactional emails is easy regardless of your tools. If you use a NodeJS helper library, this walkthrough will help you get set up in Mailgun. Read more...

Read more

An expanded Mailgun product suite to transform email deliverability

Today marks a special day for Sinch Mailgun. For over a decade, our focus has been to provide the best email experience for businesses all around the world. Now, we take...

Read more

Popular posts

Email inbox.

Build Laravel 10 email authentication with Mailgun and Digital Ocean

When it was first released, Laravel version 5.7 added a new capability to verify user’s emails. If you’ve ever run php artisan make:auth within a Laravel app you’ll know the...

Read more

Mailgun statistics.

Sending email using the Mailgun PHP API

It’s been a while since the Mailgun PHP SDK came around, and we’ve seen lots of changes: new functionalities, new integrations built on top, new API endpoints…yet the core of PHP...

Read more

Statistics on deliverability.

Here’s everything you need to know about DNS blocklists

The word “blocklist” can almost seem like something out of a movie – a little dramatic, silly, and a little unreal. Unfortunately, in the real world, blocklists are definitely something you...

Read more

See what you can accomplish with the world's best email delivery platform. It's easy to get started.Let's get sending
CTA icon