# GET /domains/{name}/mail/accounts/{local}/bot-keys

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

UrbeStack release 0.2.35 API operation in the mail group.

List a mailbox's bot keys

- Who may call it: administrator, reseller, customer
- Token scope, any of: mail, read, all
- Answers: 200 OK

Returns the keys in ascending key ID order with usage data for each key, including the last use time, sends this hour and today, and refusals this hour. A key with no usage record has a null last_used_at and zero counts. The response also includes used_by_person, which indicates whether a person uses the mailbox, and ceilings, which includes the server limits and the mailbox's key limit under its owner's package.

The server details indicate whether BotMail is enabled and whether mail is installed. The mail.botmail setting defaults to on when BotMail is installed. The certificate field is issued or self-signed. Bots reject self-signed certificates. The address and address_port fields give the server's HTTPS URLs for /botmail/mcp on port 443 and on the port set by panel.port, which defaults to 8443. Administrators also receive domain counts by state (ready, preparing, failed). Other callers receive package_botmail, which indicates whether their own package allows BotMail and is true if they have no package.

The caller must have access to the domain. If the mailbox does not exist, the operation returns 404.

## Parameters

- `name` (path, DomainName, required)
- `local` (path, LocalPart, required)

## 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/domains/example.com/mail/accounts/info/bot-keys" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "ceilings": {},
  "keys": [
    {
      "address": "info@example.com",
      "address_made_at": "text",
      "blocked": [
        "text"
      ],
      "calls_per_minute": 1,
      "ceilings": {},
      "copy_to": "text",
      "created_at": "2026-09-09T10:15:00Z",
      "dead_why": "text",
      "expires_at": "2026-09-16T10:15:00Z",
      "folders_out": [
        "drafts"
      ],
      "from_addresses": [
        "text"
      ],
      "from_name": "text",
      "host": "text",
      "id": 1,
      "key_hint": "text",
      "keyword": "text",
      "live": true,
      "login": "text",
      "mailbox": {},
      "may": [
        "read"
      ],
      "mcp_address": "text",
      "name": "alice",
      "old_key_hint": "text",
      "package_botmail": true,
      "paused": true,
      "paused_at": "text",
      "paused_by": "owner",
      "paused_by_name": "text",
      "platform": "text",
      "recipients": [
        "text"
      ],
      "recipients_per_message": 1,
      "send_mode": "self",
      "sends_per_day": 1,
      "sends_per_hour": 1,
      "updated_at": "text",
      "usage": {},
      "used_by_person": true,
      "user": "alice"
    }
  ],
  "used_by_person": true
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid mail address
- 400: Invalid mail address: local part over 64 characters
- 400: Invalid mail address: no local part
- 400: Invalid mail address: the local part may hold letters, digits, dots, _ + and -
- 400: Invalid port
- 400: Invalid setting key
- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Username '<value>' is reserved
- 401: Authentication required
- 404: No such mail account: <address>
- 404: Setting '<key>' not found
