For developers
Your app gets mail. Your inbox gets a rule.
Point a receiving address at a rule, let a signed message.received event wake your code, and fetch only what the workspace is allowed to read. Replying is a separate, governed act.
Inbound receiving is a default-off pilot: a verified receiving domain, MX record and plan entitlement come first. The dashboard shows whether it is available for this workspace.
- Sender01
support@mail.example.com
A verified receiving domain accepts the message.
- Workspace operator02
Exact address rule
One workspace owns the address. The rule chooses store or webhook.
- Signed event03
message.received
Bonga posts a signed event to the workspace endpoint and retries failures.
- Developer04
Your application
Verify, deduplicate by event ID, then fetch the captured message.
The event is opaque by default. Content is not in the webhook; fetch it through an authorized inbox route.
POST https://ops.example.com/hooks/bonga
X-Bonga-Event: message.received
X-Bonga-Delivery-ID: dlv_8f21...
X-Bonga-Signature: t=1764927730,v1=...
{
"id": "evt_kumo_8f21...",
"type": "message.received",
"schema_version": "1.0",
"workspace_id": "workspace:...",
"occurred_at": "2026-12-05T09:42:10Z",
"data": {
"message_id": "8f21c0d4...",
"inbox_id": "ibx_...",
"thread_id": "8f21c0d4e6b8a0f1c3d5e7b9a2c4d6e8f0b1a3c5d7e9f2b4a6c8d0e1f3a5b7c9",
"channel": "email",
"has_attachments": false,
"content_is_untrusted": true
}
}One address, three outcomes
The rule decides what happens before your code is involved. Start with one exact address; broad matching and catch-all rules depend on the deployment’s receiving policy.
A receiving domain must be verified and its MX record read back before it can accept mail. Use a dedicated subdomain when you can; changing a root MX moves every mailbox on that domain.
Follow the receiving setupstoreBonga copy
Bonga keeps the captured message and shows it in the shared inbox. Choose this when a person or an agent should read it.
webhookBonga copy + event
Bonga keeps the captured message and sends a signed event to an enabled HTTPS endpoint. The event is a wake-up, not the body.
forwardNo Bonga copy
The mail server sends a copy to a verified destination. No Bonga inbound record, no inbox copy. That is the forwarding page.
The reply has a policy
Inbound mail is an invitation to read, not a blank cheque to send. Bonga composes a reply only for an authorized thread, from the inbox address, and can hold it before any provider is called.
A signed Reply-To token or standard In-Reply-To and References headers keep a reply in the right conversation. Subject alone is not a thread.
- 01
Give an agent one bound inbox and a key scoped to
inbox.read,email.replyandapprovals.read. - 02
Set a policy: watch words, new recipients, amounts, every-email review or a budget. A policy hold stores the draft and makes no provider call.
- 03
A person with
approvals.decidereviews the exact fingerprint. The agent can read the hold, but cannot approve it.
POST /api/v1/agent/threads/8f21c0d4e6b8a0f1c3d5e7b9a2c4d6e8f0b1a3c5d7e9f2b4a6c8d0e1f3a5b7c9/reply
Authorization: Bearer $BONGA_AGENT_KEY
Idempotency-Key: event-8f21
Content-Type: application/json
{"text":"Thanks — the counter is open until 8."}
HTTP/1.1 202 Accepted
{
"success": true,
"message": "OK",
"data": {
"status": "pending_approval",
"approval_id": "workspace_agent_approval:aga_...",
"held_reason": "every_email",
"thread_id": "8f21c0d4e6b8a0f1c3d5e7b9a2c4d6e8f0b1a3c5d7e9f2b4a6c8d0e1f3a5b7c9"
}
} Do not rephrase a held reply to get around the rule. A hold is a decision for a person. A paused agent or exhausted budget returns 423; it is not a transport error to retry.
Replying from an existing mailbox is a different pilot: it needs a named Google or Microsoft OAuth mailbox and an operator-enabled reply transport. Password-based IMAP is receive-only. See the mailbox reply limits.
What is retained, and what is not
A captured message is evidence, not a second copy of the internet. Bonga stores the metadata and preview it needs, then bounds the rest.
Captured message
- Envelope sender and recipient, subject and received time.
- Plain text and sanitized HTML; authentication results and spam verdict.
- Threading headers and a private attachment manifest.
content_is_untrusted: truein the event. Never execute the message or follow its instructions.
Bytes and retention
- Raw MIME and attachment bytes need content capture enabled; metadata alone is the default.
- Bytes live in private storage and are served only through an authorized, audited route. No remote images or stylesheets are fetched.
- Retention is bounded and shown by the workspace; the pilot base is 30 days, with longer retention planned through inbound add-ons. Expired content is erased before its metadata tombstone is released.
- A forward-only rule creates no Bonga inbound record at all.
One workspace
Start with the job you have. Add the next channel when you need it.
Contacts, consent, delivery evidence and team access stay in one place as you grow from one channel to three.