API operation · mail group
GET
/mail/check
First published 7 Nov 2026
0.2.27Unchanged since publicationCheck the server hostname's public mail records and outbound reverse DNS
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadallAnswers200 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 sentence400<what> must be text without control characters, 1 to <max> characters400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid port400Invalid setting key401Authentication required404Setting '<key>' not found409The mail stack is not installed on this server409The server has no hostname to checkNo error of this operation matches.
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/