Docs

The full doc surface, in two halves.

The architectural concepts are documented in depth on the blog and glossary right now. The SDK + API reference ship at Phase 1 launch. Here is the full preview of both.

Shipping at Phase 1 launch (Q3 2026).

12 doc surfaces
Quickstart
Phase 1

5-minute Hello World — TypeScript, Python, MCP. From npm install to first reply event.

Concepts
Phase 1

Agents, addresses, structured reply events, behavioral pool routing, reputation graph, identity scope. The conceptual surface that the API reflects.

API reference
Phase 1

REST endpoints — sends, replies, threads, identity, suppression, usage. Request/response shapes, error codes, rate limits.

TypeScript SDK
Phase 1

@mailsai/sdk. Full reference: client constructor, agent factory, send, onReply, listThreads, suppress, identity, usage.

Python SDK
Phase 1

mailsai. Same surface as TypeScript, idiomatic Python (decorators, async/await on Python 3.10+).

MCP server reference
Phase 1

@mailsai/mcp-server. Tool schema for mails.send, mails.on_reply, mails.list_threads, mails.suppress, mails.get_reputation.

Migration guides
Phase 1

Drop-in migration from Resend, SendGrid, Postmark, Mailgun, AgentMail. Side-by-side API translations + webhook handler patterns.

Best practices
Phase 1

Agent naming conventions, reply-handling patterns, prompt-injection thresholds, retry semantics, idempotency keys.

Errors
Phase 1

Full error code reference. What each means, when it fires, how to recover.

Limits
Phase 1

Per-tier rate limits, send caps, payload sizes, retention periods, concurrency limits.

Billing + metering
Phase 1

How Stripe metered billing works under the hood. Per-event posting, invoice generation, usage thresholds, hard-cap enforcement (Phase 1.5).

Auth + API keys
Phase 1

Key scoping per agent, rotation flow, environment-variable patterns, runtime credential providers (Phase 1.5: 1Password, AWS Secrets Manager).

Following /changelog gets you a notification when each surface lands.

Closed beta

Built for agents.
Self-serve at every volume.

Public API opens Q3 2026. Drop ~6 lines into your agent and ship.

npmpnpmbunpip
$ npm install @mailsai/sdk
Packages publish with cohort 1 · Q3 2026