# BotKeyPatch

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

UrbeStack release 0.2.35 named type of the API.

## Fields

- `blocked` (array of string, up to 254 characters): Recipient email addresses and domains the key can never send to.
- `calls_per_minute` (integer, 1 to 6000): Maximum calls per minute, subject to the server's ceiling.
- `copy_to` (string, up to 320 characters or null): Email address that receives a copy of every message sent with this key. Set to null or an empty string to remove it.
- `expires_days` (integer, 0 to 3650): Number of days until the key expires, or 0 for no expiration.
- `folders_out` (array of string, one of drafts, sent, junk, trash): Special mail folders the key cannot access.
- `from_addresses` (array of string, up to 64 characters): Source IP addresses or CIDR blocks from which the bot can make calls. An empty list allows any source IP address.
- `from_name` (string, up to 64 characters): Sender display name on messages sent with this key. An empty string displays only the sender's email address.
- `may` (array of string, one of read, search, flag, draft, send, reply): Operations the key can perform. If reply is the only permission, the key can only send replies to messages it was given.
- `name` (string, up to 64 characters): Name the owner gives the key.
- `paused` (boolean)
- `platform` (string, up to 32 characters): Name of the platform or program that runs the bot, such as ChatGPT, Claude, or my program.
- `recipients` (array of string, up to 254 characters): Recipient email addresses and domains the key can send to. An empty list allows any recipient.
- `recipients_per_message` (integer, 1 to 50)
- `send_mode` (string, one of self, drafts, known): With self, messages are sent automatically. With drafts, all messages wait in Drafts for the owner, and with known, messages to known contacts are sent automatically while messages to other recipients wait in Drafts.
- `sends_per_day` (integer, 1 to 100000): Daily sending limit, subject to the server's ceiling.
- `sends_per_hour` (integer, 1 to 1000)

## Used by

- [PATCH /botmail/keys/{id}](https://urbestack.com/docs/api/patch-botmail-keys-id.md): Update a bot key's rules or pause or resume the key
