Create mailbox agent key
create_mailbox_agent_keyCreate an agent key for a mailbox you own (mailbox_id from list_mailboxes), with the read and draft permissions (or one of them). The token is returned only in this response, with the Correio MCP URL and a ready Claude Code command: treat it as a secret. A key made here can never send on its own: the agent's sends wait for the owner's approval, and only a person can grant the send permission, in the dashboard.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mailbox_id": "<mailbox_id>",
"label": "<label>"
},
"name": "create_mailbox_agent_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Which agent or device holds this key | |
| scopes | No | read and/or draft; send is granted only in the dashboard | |
| expires_at | No | Optional expiry (ISO 8601) | |
| mailbox_id | Yes | Mailbox id from list_mailboxes |