# GET /botmail/keys/{id}

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

UrbeStack release 0.2.35 API operation in the mail group.

Get a bot key's rules and login status

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

The response includes the mailbox email address and owner, the key's rules, and the domain's MCP URL when configured. The key_hint field shows only the last four characters of the secret. The live field reports whether the key can log in, and dead_why gives the reason when login is unavailable.

Administrators can retrieve any key. Resellers can retrieve keys for their own mailboxes and their customers' mailboxes. Customers can retrieve keys for their own mailboxes. The API returns 404 if the key is missing or the caller lacks access to it.

## Parameters

- `id` (path, integer, 1 or more, 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/botmail/keys/1" \
  -H "Authorization: Bearer $TOKEN"
```

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

- 400: Invalid id
- 401: Authentication required
- 404: No such bot connector: <c.params>{id}
- 404: No such bot connector: <id>
