Skip to content
Free plan, no credit card

Email API for AI agents: give each agent its own inbox

Obsession’s email API for AI agents gives each agent its own inbox in one call. It sends and receives, keeps every thread and attachment, and your app hears about each new email as it lands.

import { Obsession } from "obsession"const obsession = new Obsession({ apiKey: process.env.OBSESSION_API_KEY })// An inbox of its own, ready to send and receiveconst inbox = await obsession.inboxes.create()// Send from inbox.addressawait inbox.send({  to: "maria@larkfield.example",  subject: "Your refund is on its way",  text: "We sent $42.00 back to your card this morning.",})// Each reply reaches your webhook, in its threadawait obsession.events.subscribe({  url: "https://your-app.example/hooks/email",  events: ["email.received"],})

Its own inbox, so the code comes to the agent.

Most sign-ups send a link or a code by email. With its own address, the agent receives it, opens it and carries on, and every email after it stays in the thread.

  1. 01It signs up on a supplier portal
  2. 02The link lands in its own inbox
  3. 03It opens the link and carries on
  4. 04Every email after is kept
Ada, the purchasing agent at northpine.exampleExample

Event log

500 inboxes · one per agent

  1. 10:02:11page.visitedsupplier.example/register · ada@northpine.example · screenshot saved
  2. 10:02:19email.received“Confirm your email” · link inside
  3. 10:02:23page.visitedLink opened 4 s after it arrived · account active
  4. 10:40email.receivedYour trade price list · PDF attached
  5. Fri 09:00email.received“Prices rise 6% on 1 December”

Sign-in link opened 4 seconds after arriving

5 events · delivered
An agent with its own address signs up, confirms by email and keeps every message after. Northpine is an invented example.

An email inbox for AI agents, with every thread kept.

Everything a person does with an inbox, done through code.

  • An inbox in one call

    A new address for each agent, user or task, ready the moment the call returns.

  • Send and receive

    Plain text or HTML, to anyone. Replies land back in the same inbox.

  • Threads kept for you

    Replies are grouped by conversation, so your agent reads the whole exchange first.

  • Attachments both ways

    Send files, and get every file that arrives: invoices, PDFs, images and calendar invites.

  • Codes read for you

    Verification codes and confirm links are pulled out of each email, so a sign-up finishes without a person.

  • A webhook for every email

    Your app gets each new message as it lands, with its thread and its files.

Every event reaches your webhook, your code or your agent.

Each event is saved in your event log, then sent where you listen.

The events it sends

email.received
An email lands in one of your inboxes, with its thread and attachments.
email.sent
An email your agent wrote leaves its inbox.

Where they reach you

  1. One signed webhook

    Subscribe once for every piece and blueprint. Each event is signed.

  2. Your event log, by cursor

    Read every event since the last one you saw.

  3. Your own agent, over MCP

    Events as tools, in Claude Code, Cursor or any MCP client.

  4. Your handler, on our runtime

    Your code runs about 50 ms after the event lands. No server to run.

  5. A live stream while you build

    Every event, forwarded to your laptop.

  6. Zapier, Make and n8n

    Each event starts a Zap, scenario or workflow.

If your server is down, events retry for 27 hours, and any event can be replayed.

See the code for each channel

Pay for the inboxes your agents keep and the mail they move.

Inboxes are billed by the month, email by the thousand.

See every price
Inbox
$0.50 an inbox a month
Free includes 3 inboxes.
Emails
$0.40 per 1,000 emails, sent or received

Real mail, handled by your agent from the first message.

An API that gives an agent its own inbox. The agent sends and receives email through code, and a webhook tells your app about each new message.

AgentMail, Twilio, Browserbase and E2B in one API

Yes. Start with inboxes, and add a phone number, a browser or a sandbox when a job needs one, on the same key and bill.

Subscribe your URL to email.received with obsession.events.subscribe, and each new message is posted to it with its thread and attachments. Any inbox can also be read through the API.

Yes. Add your domain once, with the DNS records we give you, and every inbox can send from it, signed so it reaches the inbox.

Inbox: $0.50 an inbox a month. Emails: $0.40 per 1,000 emails, sent or received. Free includes 3 inboxes.

Give every agent its own inbox.