Mail API keys let an application send and retrieve mail for one mailbox or a known domain mailbox. Agent URLs expose a controlled MCP interface to compatible AI tools.
Step by step
- Create a Mail API key
Open the domain Mail API tab, choose the mailbox scope, name the key and select read or write capabilities.
- Store the secret
Copy the key when it is shown and store it in the application's secret manager. Revoke keys that are no longer needed.
- Call the mail surface
Use /api/mail/v1 endpoints for mailbox discovery, folders, messages, attachments and sending. The key only works on the Mail API surface.
- Connect an agent
Create or copy an agent URL from the Agents tab and configure it in a compatible AI client. The URL is scoped to the selected mailbox.
Good to know
- Mail keys are separate from general personal access tokens.
- Use the public Mail API documentation for request and response examples.