Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

Inbox Module Documentation

Enterprise

Enterprise module

inbox is part of the HedHog Enterprise offering and requires a commercial license. Only the Core module is Open Source. Request a quote →

The Inbox module implements shared mailbox management on top of Resend, with account access control, threaded message views, async send queues, delivery webhooks, drafts, and labels.

Each submodule below maps to a concrete runtime area in the library. Together they form the full mailbox experience used by the admin UI and background workers.

Submodules

6

HTTP endpoints

30

MCP tools

0

Source root

libraries/inbox/src

Inbox is split between interactive HTTP controllers and asynchronous queue/webhook processing. Threads, messages, drafts, and labels all depend on account-level access rules enforced through shared services.

accounts

Manages the inbox mailboxes (inbox_account) that threads, messages, drafts and labels all belong to, including account ownership and shared-member access.

4 endpoints0 MCP tools

threads

Folder-based thread inbox (inbox, outbox, sent, archived, trash, starred) built with raw SQL aggregation over inbox_message, plus archive/trash/star/read state and permanent deletion.

10 endpoints0 MCP tools

messages

Send and read individual inbox_message records — outbound send queueing via the Queue library, delivery via Resend, and the raw provider payload for debugging.

4 endpoints0 MCP tools

webhooks

Public Resend webhook intake for delivery/engagement events and inbound (received) emails, verified by HMAC signature rather than the platform role/auth guard.

3 endpoints0 MCP tools

drafts

Autosaved, standalone compose drafts (inbox_draft) — not linked to a thread or message until explicitly sent.

5 endpoints0 MCP tools

labels

Account-scoped labels (inbox_label) with optional system semantics, applied to messages via inbox_message_label, including a thread-wide toggle mode on the update endpoint.

4 endpoints0 MCP tools