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

/botmail

First published 18 Oct 20260.2.10Unchanged since publication

Get the server's BotMail status and limits

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

Administrators can use this operation to check whether the mail stack is installed and BotMail is enabled. BotMail is enabled when the mail stack is installed and mail.botmail is on. The setting defaults to on. The certificate field reports issued or self-signed for the web interface hostname.

The address and address_port fields contain HTTPS URLs for /botmail/mcp on the web interface hostname. They use port 443 and panel.port, respectively. The default for panel.port is 8443. Bots connecting from outside the server use their domain's BotMail hostname.

The response counts all bot keys, distinct mailboxes with keys, and BotMail domains in each state (ready, preparing, and failed). For the current UTC hour, totals counts keys that sent mail, messages sent, and calls refused. If those totals are unavailable, known is false and all three counts are zero.

The server settings cap the number of keys per mailbox (mail.botmail_keys_per_mailbox, default 5), calls per minute per key (mail.botmail_calls_per_minute, default 60), messages sent per day per key (mail.botmail_sends_per_day, default 200), and attachment size in MB (mail.botmail_attachment_mb, default 10). The mail.botmail_activity_days setting controls activity retention and defaults to 30 days.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/botmail" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "botmail": {
    "address": "info@example.com",
    "ceilings": {},
    "domains": {
      "failed": 1,
      "preparing": 1,
      "ready": 1
    },
    "enabled": true,
    "keys": 1,
    "mail_installed": true,
    "mailboxes": 1
  }
}

Errors

9 errors, each a status and a sentence
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
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.10 on 18 Oct 2026.
urbestack.com/docs/api/get-botmail/