# POST /botmail/verify

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

UrbeStack release 0.2.35 API operation in the mail group.

Verify a bot key and retrieve its rules

- Who may call it: anyone (no token needed)
- Answers: 200 OK

BotMail calls this operation for every request it serves. It supplies the bot key in key as the credential. The operation requires no API token and accepts requests only from 127.0.0.1 or ::1.

A successful response returns the key's public details and rules in key, along with the login for the current or previous key presented, the server ceilings, and the mailbox's email address and hourly sending limit.

A missing, malformed, unknown, paused, or expired key returns 401, as does a key whose mailbox is suspended or whose use is blocked because BotMail is disabled. The response uses the same error message for all of these cases. Requests from outside loopback or to a server without BotMail return 404.

## Request body

JSON, the type [BotKeyVerify](https://urbestack.com/docs/api/types/BotKeyVerify.md).

- `key` (string, up to 128 characters, required): Bot key as presented by the bot.

## 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 POST "$API/botmail/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "panel.port"
  }'
```

Response, 200 OK:

```
{
  "key": {
    "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"
  }
}
```

## Errors

- 401: Unknown key
- 404: Not found
