# GET /botmail

First published 18 Oct 2026 (release 0.2.10) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

Get the server's BotMail status and limits

- Who may call it: administrator
- Token scope, any of: mail, read, all
- Answers: 200 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

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
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

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 401: Authentication required
- 404: Setting '<key>' not found
