API operation · mail group
GET
/botmail/domains
First published 22 Oct 2026
0.2.15Unchanged since publicationList domains with local mail and their BotMail status
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadallAnswers200 OK
Administrators see all domains whose mail is hosted on this server. Resellers see their own domains and their customers' domains. Customers see their own domains. Results are ordered by domain name.
Each entry includes mailbox and bot key counts and shows whether BotMail is off, preparing, ready at the domain's BotMail hostname, or failed. When available, the entry includes the setup job ID, the reason setup failed, and certificate expiration or error details.
Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/botmail/domains" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"domains": [
{
"cert_error": "text",
"cert_not_after": "text",
"error": "Domain 'example.com' already exists",
"host": "text",
"job": {
"id": 1,
"status": "active"
},
"keys": 1,
"label": "my laptop",
"mailboxes": 1,
"name": "alice",
"records": [
{
"name": "alice",
"type": "A",
"value": 8443
}
],
"state": "off",
"suggested": "text",
"user": "alice",
"wildcard": true
}
]
}Errors
3 errors, each a status and a sentence400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication requiredNo 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.15 on 22 Oct 2026.
urbestack.com/docs/api/get-botmail-domains/