Email infrastructure for AI agents
Give every agent its own inbox in one API call. Mail arrives on a webhook already parsed, threaded and authenticated, and your agent gets the message, not the 240 quoted lines under it.
Built for ourselves first. MailCraft started as an internal tool, and NT Connect's own team uses it.
Part of the NT Connect platform.
mc = httpx.Client(base_url="https://api.mailcraft.ntconnect.com", headers={"authorization": f"Bearer {API_KEY}"}) # give your agent an address of its own inbox = mc.post("/v0/inboxes", json={}).json() # -> agent-3f9a1c0e7b2d4a68.acme@agents.mxcraft.cc # mail arrives on your webhook, already parsed def on_message(event): # after checking its signature thread = mc.get(f"/v0/threads/{event['data']['thread_id']}").json() agent.handle(thread)
Email that doesn't eat your context window
Raw email wastes your model's context. MailCraft hands it the part worth reading. The MCP layer is not a thin proxy over the REST API. It is a different presentation, written for a reader whose attention costs money: HTML stripped to text, quoted chains collapsed, bodies cut at a token budget with an explicit continue offset, never silently.
<html><head><style>.ExternalClass… > On Tue, 12 Aug, Dana wrote: > > On Mon, 11 Aug, Sam wrote: > > > On Fri, 8 Aug, Alex wrote: > > > > [ 240 more quoted lines ] -- Dana Whitfield | VP Operations Acme Corp | +1 555 0147 [ legal disclaimer, 18 lines ]
from: Dana Whitfield <dana@acme.example> subject: Re: invoice 4417 thread: thr_r56qpaatcd71h3sb1pd3rvkz84 message: msg_79q5y44b5n6939z43xess2sacw auth: spf=pass dkim=pass dmarc=pass Invoice 4417 is short by $240. Looks like the Q3 credit was not applied. Can you reissue? [… 240 lines quoted …] [… signature …] attachments: invoice-4417.pdf · application/pdf · 82 KB
Attachments are listed, never inlined. Your agent asks for the PDF only when it actually needs the PDF.
Every message also carries its SPF, DKIM and DMARC results, so the agent knows how much to trust what it just read before it acts on it.
Fourteen tools: list_inboxes, create_inbox,
list_threads, search_threads, get_thread,
get_message, get_attachment_url and
list_new_mail to read; send_message,
reply, forward, create_draft,
send_draft and get_draft to write, with
an owner's or admin's approval when the inbox asks for it.
* Measured on a five-message thread with a quoted reply chain, an
HTML alternative, signatures and one 82 KB PDF attachment: the five raw messages against
get_thread's default output. Of the raw figure, 78,041 tokens are the PDF's
encoding; without it the raw thread is 24,653 tokens. Tokens counted with o200k_base, an
approximation. Measured on single replies (tokens estimated as characters ÷ 4): an Outlook
desktop reply drops from 74 to 21 tokens, a Gmail reply from 61 to 25.
An address of its own, and the judgment to use it
◆ Reconcile a short-paid invoice
A billing agent receives "invoice 4417 is short by $240," pulls the PDF only when it needs it, checks the credit against the ledger, then replies in the same thread, from the same address.
◆ Run a support queue without a shared mailbox
One inbox per customer, created on signup. Every thread is designed to stay grouped even when the customer's mail client mangles the headers.
◆ Hand off to a phone call and come back
A scheduling agent that can't close over email dispatches a CallCraft follow-up, and the call's outcome lands back in the thread it came from. (planned)
◆ Let agents talk to agents
Two agents with MailCraft inboxes can negotiate, confirm and escalate over a channel every human and system already understands.
Agent email is not human email
Bolting an IMAP client onto an LLM produces something that technically reads mail and practically falls over. Three things break first.
◆ Inboxes need to be cheap
One address per agent, per task, per customer. That means creating inboxes programmatically and disposing of them without a provisioning ticket.
◆ Mail is not request/response
Replies arrive minutes or days later, out of order, from addresses you did not expect. Agents need events, not polling loops.
◆ Lost messages hide in the details
Many senders emit broken References headers, and real mail arrives with nested multiparts, mislabelled charsets and client quirks. Reconstructing a conversation, and keeping every message in it, takes more than reading one field.
Inboxes, threads and messages, over HTTP
A small REST surface with cursor pagination and RFC 9457 problem responses. Request and
response bodies are camelCase; webhook payloads are snake_case. The API is at
https://api.mailcraft.ntconnect.com, also reachable as
https://api.mailcraft.cc. The OpenAPI document is published at
https://api.mailcraft.ntconnect.com/openapi.json, so you can generate a client in your language, and
every endpoint is described in the API reference.
# with an API key POST /v0/inboxes GET /v0/inboxes GET /v0/inboxes/{id} DELETE /v0/inboxes/{id} GET /v0/inboxes/{id}/threads GET /v0/threads?q= GET /v0/threads/{id} GET /v0/messages/{id} GET /v0/messages/{id}/raw POST /v0/messages/{id}/view GET /v0/attachments/{id} GET /v0/events?since= POST /v0/inboxes/{id}/messages POST /v0/messages/{id}/reply POST /v0/messages/{id}/forward POST /v0/inboxes/{id}/drafts GET /v0/drafts GET /v0/drafts/{id} PATCH /v0/drafts/{id} DELETE /v0/drafts/{id} POST /v0/drafts/{id}/send GET /v0/usage GET /v0/suppressions DELETE /v0/suppressions POST /mcp # no credential GET /openapi.json GET /health GET /v0/status GET /v0/brief GET /v0/brief/{ref} GET /v0/view/{token} GET /v0/view/{token}/att/{id} GET /v0/draft-view/{token}
{
"id": "evt_kwp1v11yex55q70gde6jykgt6c",
"type": "message.received",
"created_at": "2026-09-09T11:04:22.117Z",
"createdAt": "2026-09-09T11:04:22.117Z",
"data": {
"message_id": "msg_79q5y44b5n6939z43xess2sacw",
"thread_id": "thr_r56qpaatcd71h3sb1pd3rvkz84",
"inbox_id": "ibx_fcf9mh1chn7ndcx0wqcf3gnscw",
"channel": "email",
"from": "dana@acme.example",
"subject": "Re: invoice 4417",
"spf": "pass",
"dkim": "pass",
"dmarc": "pass"
}
}
◆ Signed webhooks
HMAC-SHA256 with a replay window, retries backing off out to 24 hours, and at-least-once delivery with stable event IDs to dedupe on. Endpoints, secret rotation and a delivery log live in the console.
◆ An event log to catch up from
Every event, in order, at GET /v0/events, in the same envelope the webhooks carry. An agent that was asleep picks up from the last event it saw; webhooks stay the push transport.
◆ Authentication provenance
Every inbound message carries its SPF, DKIM and DMARC results as fields, so your agent can decide how much to trust what it just read. Any of the three is null when that check could not be performed, rather than reporting a result that was never evaluated.
◆ Sending and replying
To, cc and bcc, up to 50 recipients in all, a subject, a text body, an HTML body or both, and attachments. Every send and reply carries an Idempotency-Key header: a retried request gets the first one's answer for 24 hours and never sends twice. The API answers 202 once the message is queued, and a reply joins the original's thread, from the same inbox. An attempt that fails for a passing reason is retried, backing off from 30 seconds to two hours, before the message is marked failed.
◆ Drafts
Save a draft with POST /v0/inboxes/{id}/drafts, edit it with PATCH /v0/drafts/{id} (give the version you read; a stale one is refused), and send it once with POST /v0/drafts/{id}/send. A draft can be a reply. An agent's drafts are visible to the whole organization, so the people in it can see what the agent has written.
◆ Fifteen event types
Six for messages (message.received, message.sent, message.delivered, message.bounced, message.complained and message.failed), three for drafts (draft.submitted, draft.sent and draft.rejected), four plan notices for a payment lapse and two for the inboxes it stops or deletes. A webhook endpoint takes all of them or the ones you pick. The catalogue, with every payload, is on Webhooks.
◆ Addresses you name
Choose an inbox's username, or leave it out and one is assigned, and give it a display name for the From line. For most organizations the address is username.handle@agents.mxcraft.cc, where the handle is your organization's: chosen when the organization is created (suggested from its name), unique and fixed. Names may not use an NT Connect brand.
◆ The formatted view
Text is the default. When the HTML matters, POST /v0/messages/{id}/view returns a link, good for five minutes, to the message as its sender formatted it, in a sandbox with no scripts. Remote images stay blocked until a reader asks for them, so a tracking pixel is never fetched by default.
The console signs in through NT Connect and has routes of its own, below. Each
/v0 route above that takes an API key also has a twin under
/v0/orgs/{orgId} for a person signed in.
# you and your organizations POST /v0/me/session GET /v0/me POST /v0/orgs GET /v0/orgs/{orgId} PATCH /v0/orgs/{orgId} DELETE /v0/orgs/{orgId} POST /v0/orgs/{orgId}/owner POST /v0/orgs/{orgId}/undo-delete # members and invitations GET /v0/orgs/{orgId}/members PATCH /v0/orgs/{orgId}/members/{userId} DELETE /v0/orgs/{orgId}/members/{userId} POST /v0/orgs/{orgId}/invitations GET /v0/orgs/{orgId}/invitations DELETE /v0/orgs/{orgId}/invitations/{id} POST /v0/invitations/accept # API keys GET /v0/orgs/{orgId}/api-keys POST /v0/orgs/{orgId}/api-keys PATCH /v0/orgs/{orgId}/api-keys/{keyId} DELETE /v0/orgs/{orgId}/api-keys/{keyId}
# webhooks GET /v0/event-types GET /v0/orgs/{orgId}/webhooks POST /v0/orgs/{orgId}/webhooks PATCH /v0/orgs/{orgId}/webhooks/{endpointId} DELETE /v0/orgs/{orgId}/webhooks/{endpointId} GET /v0/orgs/{orgId}/webhooks/{endpointId}/deliveries POST /v0/orgs/{orgId}/webhooks/{endpointId}/rotate-secret # inboxes DELETE /v0/orgs/{orgId}/inboxes/{inboxId} # unread markers (sign-in token) POST /v0/orgs/{orgId}/threads/{threadId}/read POST /v0/orgs/{orgId}/threads/{threadId}/unread # approval PATCH /v0/orgs/{orgId}/inboxes/{inboxId} POST /v0/orgs/{orgId}/drafts/{draftId}/reject POST /v0/orgs/{orgId}/drafts/{draftId}/view GET /v0/orgs/{orgId}/drafts/{draftId}/attachments/{id} # billing and the payment lapse GET /v0/orgs/{orgId}/billing POST /v0/orgs/{orgId}/billing/refresh POST /v0/orgs/{orgId}/billing/checkout POST /v0/orgs/{orgId}/billing/topup POST /v0/orgs/{orgId}/billing/portal GET /v0/orgs/{orgId}/lapse PUT /v0/orgs/{orgId}/lapse/keep
An owner or admin approves before the agent's mail goes out
Turn on approval for an inbox and an agent's or a member's send from it waits. The send or
reply is held as a draft and answered with 202 pending_approval;
an owner or admin approves it, edits and approves it, or rejects it with a note
the author reads. API keys cannot change the setting, so an agent can never switch off its
own approval.
◆ Per inbox, set by an admin
An admin or the owner switches it on from the console's Inboxes page. It holds the agent's sends over the REST API and the MCP server alike, and a member's send from the console: a member's send waits. An owner's or admin's send goes out at once.
◆ The agent hears the outcome
draft.sent or draft.rejected arrives on its webhook and in the event log, a rejection with the reviewer's note. Over MCP, get_draft and list_new_mail show the same. While it waits, the agent can withdraw the draft, but only an owner or admin can edit it.
◆ Reviewed in the console
Drafts awaiting approval are listed oldest first on the console's Drafts page, with the formatted view and the attachments. Only an owner or admin can approve or reject; viewers can see drafts but not act on them.
Step by step, with the payloads: Human approval.
What happens when mail arrives
Unknown recipients are rejected at SMTP time rather than accepted and bounced. Accept-then-bounce generates backscatter, and backscatter is the fastest route onto a blocklist. Raw MIME is stored immutably; everything parsed from it is derived and rebuildable.
Internet ──SMTP:25──▶ MTA 1. recipient exists? ── no ──▶ 550 5.1.1 (rejected at RCPT TO) 2. blocklist / size / rate / in-flight limits 3. raw MIME ─────────────────▶ object storage (immutable) 4. notify ingest ────────────▶ queue │ worker ◀────────────────────────┘ parse MIME → thread + message rows attachments → object storage dedupe on (inbox, Message-ID) │ ├──▶ webhook signed, retried, at-least-once └──▶ event log GET /v0/events, in order
Mission-critical communications, extended to agents
NT Connect builds communications systems for the U.S. military, maritime operators and commercial enterprises. MailCraft runs on the same platform and is designed to meet the same security standards.
◆ One identity and billing plane
Sign-in, entitlements and billing run on Prism, the same platform that governs every NT Connect product. Access is by organization: owner, admin, member and viewer roles for people, and org-scoped API keys for agents.
◆ Teams, by invitation
Invite people by email as an admin, member or viewer. An admin or the owner changes roles and removes people, anyone but the owner can leave, and the owner can hand ownership to another member. API keys are named, created and revoked in the console, and each secret is shown once.
◆ Tenant isolation by design
Inboxes, messages and raw mail are scoped to your organization. Build email into your own product without mixing customers' data.
◆ Immutable raw mail, derived everything else
The original MIME is never modified. Parsed threads, bodies and attachments are rebuildable from it, which is designed to make auditing straightforward.
◆ Guardrails in both directions
Unknown recipients refused at RCPT TO, DNS blocklists, per-organization daily and burst limits, and size limits. Under load the mail server defers rather than drops: the sender retries, and nothing it was told was accepted is lost. Outbound, every plan has per-minute, per-hour and per-day sending limits, addresses that bounce or complain go on a suppression list, and an organization's sending pauses itself when complaints or bounces climb.
Where the people behind the agents work
Sign in at mailcraft.ntconnect.com/app with your NT Connect account. What your agents send and receive is there for a person to read and check.
◆ Read and write mail
Every inbox's threads, each message with its SPF, DKIM and DMARC results, and the formatted view when the HTML matters. Compose a message or a reply, with attachments, and send it or save it as a draft.
◆ Activity and usage
The event feed, newest first, and a count of the messages received and sent, by day and by inbox.
◆ Webhooks
Add endpoints, pick the event types each one receives, rotate a secret, switch an endpoint off, and read its delivery log: each attempt, with the status your server answered.
◆ Suppressions
Addresses that bounced or complained, each with its reason; a send to one is refused until you remove it. Remove one when the address is good again; a complaint can be removed only by an admin or the owner.
◆ Billing and the lapse choice
Your plan and this cycle's usage, upgrades, message packs and the billing portal. If a payment fails and the organization falls back to Free, the owner or an admin chooses the 3 addresses it keeps; the others are deleted permanently 14 days after the fallback.
◆ Help
Getting started, the REST API, the MCP server with setup for MCP clients, webhooks, drafts and approval, and billing and limits, readable without signing in.
One identity, more than one channel
An inbox is the agent's address. Email is the first channel to reach it. Quanta, ClawCraft and CallCraft, from the NT Connect family below, are next.
◆ Quanta as a second channel
An inbox will also carry an end-to-end encrypted Quanta identity, so the same agent can be messaged over Quanta or plain email. Same threads, same API, same MCP presentation. The channel becomes a field on the message rather than a separate integration.
◆ ClawCraft agents, reachable
A ClawCraft agent runs always-on with its own skills catalog. Giving it a MailCraft inbox makes it addressable by anyone who can send mail, and lets it answer from the same place it does the rest of its work.
◆ CallCraft, in the same thread
CallCraft agents already register as Quanta participants with voice and text capabilities. The intent is that a mail thread can dispatch a follow-up call, and that the call's outcome returns to the thread it came from.
Your agent's first inbox is one API call away. Be there when it opens.
Join the waitlist and we'll tell you when MailCraft opens, and how to sign in.
No marketing drip. One email when it's ready.
Part of the *Craft family
MailCraft shares a platform, an account and a billing relationship with the rest of the NT Connect suite. Each product stands alone; together they close the loop from a conversation to the action it should trigger.
◆ ClawCraft
A dedicated AI agent on its own cloud computer, live in minutes. Pick an engine, install skills from a one-click catalog, and keep it always-on. Give it a MailCraft inbox and it's reachable.
clawcraft.ntconnect.com◆ CallCraft
Voice agents on real phone numbers: receptionist, scheduler, survey and order taking, with outbound dialing and recording. The planned bridge for "this thread needs a call."
callcraft.ntconnect.com◆ Quanta
End-to-end encrypted messaging with first-class agent identities. The planned second channel on every MailCraft inbox.
quanta.ntconnect.com◆ Prism
Auth, billing, entitlements and a zero-knowledge encrypted vault. The identity and policy layer MailCraft runs on.
prism.ntconnect.comSee the full suite, including MeetingCraft, Heimdall and the telecom stack underneath, at ntconnect.com.