/domains/{name}/mail/accounts/{local}/bot-keys
0.2.10Unchanged since publicationList a mailbox's bot keys
mailreadallReturns 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 ·DomainNameRequiredlocalpath ·LocalPartRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/domains/example.com/mail/accounts/info/bot-keys" \ -H "Authorization: Bearer $TOKEN"
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 sentence400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid mail address400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid port400Invalid setting key400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required404No such mail account: <address>404Setting '<key>' not foundurbestack.com/docs/api/get-domains-name-mail-accounts-local-bot-keys/