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

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

First published 18 Oct 20260.2.10Unchanged since publication

List a mailbox's bot keys

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadall
Answers200 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

namepath ·DomainNameRequired
localpath ·LocalPartRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
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

16 errors, each a status and a sentence
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid mail address
400Invalid mail address: local part over 64 characters
400Invalid mail address: no local part
400Invalid mail address: the local part may hold letters, digits, dots, _ + and -
400Invalid port
400Invalid setting key
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
404No such mail account: <address>
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-domains-name-mail-accounts-local-bot-keys/