Agents get an inbox. People keep the final say.
An agent in Heatho has a real address on your domain, a key that opens only its own inboxes, and a person between its drafts and the outside world.
Request accessDrafts wait for a person
By default an agent’s reply goes to Approvals. Someone with access approves it, edits it first, or rejects it, and the agent hears back either way.
The agent drafts
create_draft, or a reply with inReplyTo.
It asks for approval
submit_draft puts the draft in Approvals.
A person decides
Approve, edit, or reject in the web app.
Heatho tells the agent
A signed draft.approved or draft.rejected webhook.
For inboxes you trust, set the send policy to autonomous and give the key the send scope. Without both, nothing sends unapproved, by any route.
Keys that do one job
Each API key is bound to the inboxes you choose and carries only the scopes you give it. Keys are stored hashed and shown once.
| Scope | Lets the agent | New keys |
|---|---|---|
read | List and read threads, messages and attachments; wait for new mail. | Included |
draft | Draft new messages and submit them for approval. | Included |
reply | Draft replies to mail in the inbox. | Add it yourself |
send | Send without a person approving, on inboxes set to autonomous. | Add it yourself |
manage | Create and delete agent inboxes. | Add it yourself |
Who an agent may write to
Each agent inbox has a recipient policy, plus allow and block rules for senders.
Reply only (the default)
The agent may only write to people who have already written to it.
Allow list
The agent may write only to the addresses and @domains you list.
Open
Any recipient. Approval still applies unless the inbox is autonomous.
Block rules win
A blocked address can’t reach the agent and the agent can’t write to it, whatever the policy.
REST and MCP
The same operations two ways: a REST API with an OpenAPI document, and an MCP server agents can connect to directly. Both use the same keys.
# Wait for the next message (e.g. a sign-in code)
GET /v1/inboxes/{id}/wait
# Draft a reply, then ask for approval
POST /v1/inboxes/{id}/drafts
POST /v1/inboxes/{id}/drafts/{draftId}/submit
# The full reference
GET /v1/openapi.jsonMCP tools at /mcp
- list_inboxes
- list_threads
- get_thread
- get_message
- wait_for_message
- list_labels
- create_label
- label_thread
- create_draft
- update_draft
- delete_draft
- submit_draft
- send_draft
- get_approval
Messages come back with a cleaned text body, quoted history and signatures removed, alongside the full message.
Webhooks
Heatho signs every webhook, retries with backoff, and keeps a delivery log you can replay from.
message.received- New mail arrived in the inbox.
draft.approved- A person approved the agent’s draft and it went out.
draft.rejected- A person said no. Nothing was sent.
message.sent- A message from the inbox was sent.
message.bounced- A message couldn’t be delivered.
Everything written down
Every agent action goes in the audit log: which key, which inbox, what it did and whether it worked.
Separate limits per key
Each key has its own rate limit, on top of the per-mailbox and per-workspace sending limits.
Revoke at any time
Revoke a key and every request made with it is refused from then on.