Product

Weekly product update: Say hello to the Domains API

Mailgun officially released our Domains API to make it easier to build large-scale email systems on top of Mailgun. Read more...

PUBLISHED ON

PUBLISHED ON

Posted on October 25, 2013.

We’ve been quiet for a couple weeks but we have something extra exciting to share today: we’ve just officially released our Domains API to make it easier to build large-scale email systems on top of Mailgun.

Why would I need a domains API in the first place?

Many of our customers are building applications on top of Mailgun that allow their end customers to send email. Since you can operate multiple domains in a single Mailgun account, one of the things these customers can do is isolate one customer from another so that they each have their own white-label domain, their own sending queue, and their own SPF & DKIM records. Each customer’s sending reputation is also isolated, so if one customer gets the bad idea to buy an email list and send out spam, Mailgun can disable just that domain to protect your reputation, leaving other customers unaffected.

If you don’t want to give each customer their own domain, you could create buckets of domains for customers and manage reputation isolation that way. For example, you can have one domain that you use to send out your own transactional email and three buckets for your customers that you want to isolate. For example:

  • My transactional email: “myapp.com”

  • My new customers: “subnet1.myappmail.com”

  • My verified transactional customers: “subnet2.myappmail.com”

  • My verified bulk sending customers: “subnet3.myappmail.com”

Before the Domains API, each of these domains had to be created manually through the Mailgun control panel. That’s ok if you only have four domains like in this example, but what about if you have 4000? That’s a lot of clicking. Enter the Domains API…

Create and manage domains programmatically with the Domains API

With our newest API, you can do the following programmatically:

  • Retrieve list of domains: Returns list of domains under your account in JSON.

  • Retrieve details about a particular domain: Returns details for a single domain, including SMTP credentials and DNS records.

  • Create a new domain

  • Delete a domain

View the full Domains API guide

Is there a charge for using the Domains API?

No, the Domains API is free to use and each Mailgun account can have up to 1000 domains. If you need more than 1000 domains, let us know so we can discuss a plan that works for you.

Happy sending, The Mailgunners

Related readings

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

Privacy, automatic engagements, and Mailgun’s bot detection

Now more than ever, users are concerned about their data privacy and what steps they can take to protect their personal information. And that’s something big players in the tech...

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