# BotKeyCreate

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

UrbeStack release 0.2.35 named type of the API.

## Fields

- `name` (string, up to 64 characters, required): Name the mailbox owner gives the key.
- `blocked` (array of string, up to 254 characters): Email addresses and domains the key can never send to.
- `calls_per_minute` (integer, 1 to 6000): Maximum number of 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 the key. An empty string or null removes the email address.
- `expires_days` (integer, 0 to 3650): Number of days until the key expires. A value of 0 means it never expires.
- `folders_out` (array of string, one of drafts, sent, junk, trash): Special folders the key cannot access, chosen from drafts, sent, junk, and trash.
- `from_addresses` (array of string, up to 64 characters): Allowed source IP addresses or CIDR ranges for calls made with the key. An empty list allows calls from any IP address.
- `from_name` (string, up to 64 characters): Sender display name on messages sent with this key. An empty value uses the email address alone.
- `may` (array of string, one of read, search, flag, draft, send, reply): Actions the key permits, chosen from read, search, flag, draft, send, and reply. With reply alone, the bot can only answer messages it was given and cannot write to other recipients.
- `platform` (string, up to 32 characters): Label for where the bot runs, such as ChatGPT, Claude, or my program.
- `recipients` (array of string, up to 254 characters): Email addresses and domains the key can send to. An empty list imposes no recipient restriction.
- `recipients_per_message` (integer, 1 to 50)
- `send_mode` (string, one of self, drafts, known): Delivery mode for outgoing messages. Use self to send automatically, drafts to hold messages in the Drafts folder for the owner, or known to send to known contacts and hold the remaining messages in Drafts.
- `sends_per_day` (integer, 1 to 100000): Maximum number of sends per day, subject to the server's ceiling.
- `sends_per_hour` (integer, 1 to 1000)
- `used_by_person` (boolean): Whether a person also uses this mailbox in their own mail program. UrbeStack saves this value as a mailbox setting.

## Used by

- [POST /domains/{name}/mail/accounts/{local}/bot-keys](https://urbestack.com/docs/api/post-domains-name-mail-accounts-local-bot-keys.md): Create a bot key for a mailbox
