/botmail
0.2.10Unchanged since publicationGet the server's BotMail status and limits
mailreadallAdministrators 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.curl -sS -X GET "$API/botmail" \ -H "Authorization: Bearer $TOKEN"
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 sentence400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid port400Invalid setting key401Authentication required404Setting '<key>' not foundurbestack.com/docs/api/get-botmail/