latestOpenAPI 3.1.0MIT2026-08-103050171.2 KB

ebcbb377ee0f

Domains

Get domain

Retrieve a specific domain for the specified service.

get/services/{serviceId}/domains/{domainName}

Path parameters

serviceIdstring required
Example:01GVRB50KEQFFE1SGMPFRNBG6J

The serviceId containing the domain you want to retrieve.

domainNamestring required
Example:yourdomain.com

The name of the domain you want to retrieve.

Response

The details of the domain.

Example response

{
  "domain": {
    "id": "01K8BS9391KGN2Y36CDSNAVHNW",
    "name": "my.domain.com",
    "spamAction": "disabled",
    "state": "active",
    "type": "custom",
    "webPrefix": "email",
    "webScheme": "http",
    "messageTtl": 259200
  },
  "receivingDnsRecords": [
    {
      "priority": 10,
      "recordType": "TXT",
      "valid": "valid",
      "value": "mailgun.org"
    }
  ],
  "sendingDnsRecords": [
    {
      "name": "my.domain.com",
      "recordType": "TXT",
      "valid": "valid",
      "value": "mailgun.org"
    }
  ]
}