Skip to main content
This page is written for AI agents (and the developers building them). If you’re an agent reading this to implement SentFromAI, you have everything you need below.
Shortest path — paste this into your agent and it sets everything up itself:
Details: Agent self-install.

Ingest the whole docs

The full documentation is available as a single plaintext file optimized for LLMs:
There’s also an index at /llms.txt. Append .md to any docs page URL to get its raw Markdown.

The essentials

  • Base URL: https://api.sentfrom.ai/v1
  • Auth: Authorization: Bearer sf_live_… on every request (details).
  • Format: JSON in, JSON out. Errors are { "error": "…" } with standard status codes (reference).

The core loop

Most agents follow the same loop. Each step links to its full reference:
1

Create an inbox

POST /inboxes { local_part } → an address like agent@mail.sentfrom.ai, live immediately. (Inboxes)
2

Send mail

POST /messages { inbox_id, to, subject, text }. Use client_id for idempotent retries. (Sending)
3

Receive mail

Register a webhook for message.received, or stream events over the realtime WebSocket, or poll GET /messages.
4

Reply in thread

POST /messages/{id}/reply { text } — threading headers are set for you. (Threads)

Use it as native tools (MCP)

Rather than calling the REST API, connect the SentFromAI MCP serversentfromai-mcp on npm — and all of the above becomes 21 tools the model calls directly:
Running OpenClaw, LangChain, CrewAI, or another framework? There’s a per-framework recipe for each.

Worked examples

Auto-reply agent

Webhook → generate a reply → send it in thread.

Email labeling agent

Classify inbound mail and apply labels.
Get a key from the dashboardAPI keys. The free plan gives 5 inboxes, 5,000 emails/month, and 5 GB of attachment storage — enough to run a real agent, not just a demo. Paid plans start at $19/mo for 100 inboxes and 20,000 emails.