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

/mail/check

First published 7 Nov 20260.2.27Unchanged since publication

Check the server hostname's public mail records and outbound reverse DNS

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

UrbeStack queries public DNS for the server hostname's mail records and checks reverse DNS for every IP address used to send mail. The response returns the results in check. If the hostname is a hosted domain, UrbeStack checks it as that domain and sets hosted to true. Otherwise, hosted is false.

UrbeStack returns 409 if the server lacks a hostname containing a dot or if the mail stack is disabled or missing. This operation requires an administrator and a token with the mail scope.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/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

12 errors, each a status and a sentence
400<what> must be text without control characters, 1 to <max> characters
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid port
400Invalid setting key
401Authentication required
404Setting '<key>' not found
409The mail stack is not installed on this server
409The server has no hostname to check
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-mail-check/