Mailgun Domains API

The Domains API from Mailgun — 2 operation(s) for domains.

GitHub OpenAPI
Business capability
Email AE-150.10

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /domains List sending domains · List domains #
Ask an LLM
“Which domains am I sending mail from?”
“What domains have I set up for email?”
Tell an agent
List my sending domains.
Show every domain I've added.
POST /domains Add a sending domain · Create a domain #
Ask an LLM
“How do I add a new domain for sending mail?”
“Can I set a custom SMTP password and spam action when adding a domain?”
Tell an agent
Add the domain {name}.
Create domain {name} with SMTP password {smtp_password} and spam action {spam_action}.
GET /domains/{name} Get a sending domain · Get a domain #
Ask an LLM
“What settings does a particular domain have?”
“Can I look up one domain by name?”
Tell an agent
Show domain {name}.
Get the settings of sending domain {name}.
DELETE /domains/{name} Delete a sending domain · Delete a domain #
Ask an LLM
“How do I stop sending mail from a domain?”
“Can I remove a domain I no longer use?”
Tell an agent destructive · confirm first
Delete domain {name}.
Remove the sending domain {name}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mailgun:mailgun-domains-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mailgun-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailgun Domains API
  description: Mailgun (by Sinch) is a transactional email API platform offering message send, inbound routing, suppression management, list management, webhooks, and event analytics. The HTTP API uses HTTP Basic Authentication with the literal username `api` and the account API key as the password. Regional endpoints are available for US (`api.mailgun.net`) and EU (`api.eu.mailgun.net`) data residency.
  version: 3.0.0
  contact:
    name: Mailgun
    url: https://documentation.mailgun.com/docs/mailgun/api-reference/
servers:
- url: https://api.mailgun.net/v3
  description: US region
- url: https://api.eu.mailgun.net/v3
  description: EU region
security:
- BasicAuth: []
tags:
- name: Domains
paths:
  /domains:
    get:
      tags:
      - Domains
      summary: List domains
      operationId: listDomains
      responses:
        '200':
          description: Domains
    post:
      tags:
      - Domains
      summary: Create a domain
      operationId: createDomain
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                smtp_password:
                  type: string
                spam_action:
                  type: string
                wildcard:
                  type: boolean
      responses:
        '200':
          description: Domain
  /domains/{name}:
    get:
      tags:
      - Domains
      summary: Get a domain
      operationId: getDomain
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Domain
    delete:
      tags:
      - Domains
      summary: Delete a domain
      operationId: deleteDomain
      parameters:
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deleted
components:
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: HTTP Basic with username `api` and your Mailgun API key as the password.