Get your free beta license ↗
API operation · mail group
GET

/domains/{name}/mail/check

First published 7 Nov 20260.2.27Unchanged since publication

Check the domain's mail DNS records

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadall
Answers200 OK

UrbeStack queries the DNS resolvers configured in mail.check_resolvers to see which mail records are publicly visible. The 200 response contains check, which compares those results with what the domain's authoritative nameserver serves and what the local zone contains. It reports the status of each record and any available fix or values to publish at the DNS provider.

The operation returns 404 if the domain has no mail configuration. It returns 409 if the domain routes mail elsewhere or if the server's mail stack is disabled or missing.

Administrators, the customer who owns the domain and that customer's reseller can call this operation with a token that has the mail scope.

Parameters

namepath ·DomainNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/domains/example.com/mail/check" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "check": {
    "checked_at": "text",
    "dns": "here",
    "dns_server": "text",
    "failed": true,
    "hosted": true,
    "name": "alice",
    "nameservers": [
      "text"
    ],
    "records": [
      {
        "adds": [
          "text"
        ],
        "copy": {
          "name": "alice",
          "priority": 1,
          "type": "rebuild",
          "value": 8443
        },
        "expected": "text",
        "fix": "publish",
        "fqdn": "text",
        "inherited": "text",
        "key": "panel.port",
        "name": "alice",
        "state": "correct",
        "theirs": "text",
        "type": "A",
        "until": "text",
        "value": 8443,
        "world": [
          "text"
        ]
      }
    ],
    "resolver": "text",
    "resolvers": [
      "text"
    ],
    "reverse": [
      {
        "address": "info@example.com",
        "bound": true,
        "family": "ipv4",
        "hostname_address": true,
        "matches_hostname": true,
        "on_machine": true,
        "points_back": true,
        "ptr": "text",
        "state": "correct"
      }
    ]
  }
}

Errors

7 errors, each a status and a sentence
400Domain name required
400Domain name too long
400Invalid domain name
401Authentication required
404No such domain: <name>
409<md.domain> routes its mail elsewhere; this server publishes no mail records for it
409The mail stack is not installed on this server
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.27 on 7 Nov 2026.
urbestack.com/docs/api/get-domains-name-mail-check/