Email API for
AI agents
Send and receive emails with one API call. Built for autonomous agents.
Why normal email APIs don't work with AI agents
Traditional email infrastructure was designed for humans, not autonomous systems. Here's what breaks, and how we fix it.
No conversation context
Just single emails per webhook. No idea what was said before. You have to manually track conversation history yourself.
Smart threading engine
Emails grouped like a messenger chat. Full conversation context always available. See the entire thread history with one API call.
OAuth complexity
Traditional email APIs require OAuth flows, user consent, and token management—impossible for autonomous agents.
Agent-first authentication
Agents use their own identity with simple API keys. No OAuth, no user consent, no token refresh.
4MB payload limits
Serverless platforms like Vercel limit input parameters to 4MB, blocking large attachments entirely.
Attachments via URLs
Attachments aren't sent directly—we give you secure download links instead. No payload limits, fetch only what you need.
No intelligent parsing
Raw MIME messages are a nightmare. You spend weeks parsing headers, bodies, and attachments.
Smart extraction built-in
Every email arrives pre-parsed: clean HTML/text, extracted attachments, structured metadata.
Deliverability is guesswork
Setting up SPF, DKIM, DMARC correctly is complex. Misconfigure once and your emails go to spam.
Battle-tested configuration
SPF, DKIM, and DMARC configured out-of-the-box. Your emails land in inboxes, not spam folders.
No domain? No problem.
We give you a free, fully configured domain instantly. Start sending emails right away — no DNS setup, no domain purchase, no waiting. Your domain is ready the moment you sign up.
Build context-aware email support in 40 lines of code
No complex setup, no parsing libraries, no infrastructure headaches. Just clean code that works.
import { openai } from '@ai-sdk/openai'
import { generateObject } from 'ai'
import AIInbx from 'aiinbx'
import {
createNextRouteHandler,
emailToLLMString,
threadToLLMString,
} from 'aiinbx/helpers'
import z from 'zod'
const infoAboutOurCompany = "...";
const aiInbx = new AIInbx();
export const POST = createNextRouteHandler({
onInboundEmail: async ({ payload }) => {
const { email } = payload.data;
// Get the full conversation thread with all emails in the thread
const thread = await aiInbx.threads.retrieve(email.threadId);
const { object } = await generateObject({
model: openai('gpt-5-mini'),
schema: z.object({
responseHtml: z.string(),
}),
system: `You are a helpful assistant that answers emails from customers. Here is everything you need to know about us: ${infoAboutOurCompany}`,
prompt: `Here is the full conversation: ${threadToLLMString(thread)}
Please answer the latest inbound email as a human would.`,
});
await aiInbx.emails.reply(email.id, {
from: 'support@your-domain.com',
html: object.responseHtml,
});
return Response.json({ sent: true });
},
});Everything your agents need to communicate
From unlimited scale to intelligent parsing to developer-first APIs—we've built it all.
Smart processing that understands context
Smart email parsing
Automatic extraction of clean HTML, plain text, and structured metadata.
Attachment extraction
Every file automatically extracted, stored, and accessible via signed URL.
Inline file handling
Embedded images and files extracted separately. No 4MB serverless limits.
Context-aware threading
AI threads conversations by context, even across different email addresses.
API-first with world-class DX
Clean REST API
Simple, well-documented API with TypeScript SDK. Everything just works.
Real-time webhooks
Get notified instantly when emails arrive. Reliable delivery guaranteed.
Structured data
Receive parsed, validated JSON—not raw MIME. Ready for your AI models.
Helper utilities
Thread formatting, email-to-LLM converters, and more. Ship faster.
Infrastructure that grows with your agents
Unlimited inboxes
Handle unlimited email addresses for every agent or use case. No caps, no artificial limits.
Agent-specific identities
Every agent gets its own professional email identity. No forced aliasing.
Optimized deliverability
SPF, DKIM, DMARC configured out-of-the-box. Land in inboxes, not spam.
Free during beta, fair pricing after
Get full access to AI Inbx completely free while we're in beta. Help us build the future of email infrastructure for AI agents.
A note on future pricing
Once we exit beta, we won't offer a free plan but will offer an affordable entry-level option. We're committed to keeping AI Inbx accessible while ensuring we can provide the best possible service. Current beta users will receive advance notice and special early adopter pricing.