Home/Email API

The email API your agent already knows.

REST for your code, MCP for your agent. Same keys, same templates, and a human approves every send. Idempotent sends and signed webhooks included.

<200ms accepts 8,000 free sends 25 agent tools
Verified By George Hartley, Co-founder · Updated July 17, 2026
POST /v1/my/messages202 Accepted
{
  "to": "[email protected]",
  "subject": "Your receipt",
  "html": "<p>Thanks for your order.</p>",
  "idempotency_key": "ord-4821"
}

 { "id": "msg_9f2c",
    "status": "accepted" }

What an email API is

An email API sends email from your code. One HTTP request, and the password reset, receipt, or notification is on its way. It replaces SMTP: instead of managing a mail server, connection pools, and retry logic, you POST JSON and get back a message ID you can track.

That part is settled. Every provider does it. Here is what nobody tells you: the differences that matter are which surface can drive the API, what happens after the send, and who approves what goes out.

POST /v1/messages 202 ACCEPTED
{
  "to": "[email protected]",
  "subject": "Your receipt",
  "idempotency_key": "ord-4821"
}
<200ms
Your receipt · now
Thanks for your order.
Delivered · DKIM ✓ SPF ✓
No SMTP server, no connection pools, no retry logic. One HTTP request, one message ID you can track.

Which email API to choose

SendGrid, Mailgun, and Postmark are built on legacy infrastructure. Reliable, and I mean that as a compliment. Email should be boring. But none of them can be driven by an agent, and none of them puts a human approval gate on sends.

The capability table

vendor docs & pricing · July 2026
Provider
Agent-native
Approval gate
Scope
Nitrosend Built for agents
MCP + REST
Yes
Transactional + campaigns + flows
Resend
REST only
No
Transactional
Postmark
REST only
No
Transactional
Amazon SES
REST only
No
Transactional
From each vendor's public docs and pricing, as of July 2026. Sources linked on the comparison pages.
For your code
REST
POST /v1/messages
For your agent
MCP
Claude Codex Cursor
For your terminal
CLI
$ nitro send
Nitrosend
one account
You approve
every send
Inbox
Three surfaces. One approval gate. The agent types, you stay in control.

Pick Nitrosend when you want to run email from your code and your agent. If all you want is SMTP over HTTP with a dashboard, the legacy providers do that fine, and you'll be back here in a year.

Already on one of them? I once ported email to a new platform the old way. Hours of setup, weeks of warmup. A three-month thing. Last week I moved a big platform across in five minutes, because the agent did the port. You can even run your SendGrid, Postmark, Resend, Mailgun, or SES keys underneath Nitrosend. Bring your own transport.

Your first send, thirty seconds

1 · Send your first emailcurl
curl -X POST https://api.nitrosend.com/v1/my/messages \
  -H "Authorization: Bearer ns_live_…" \
  -d '{ "to": "[email protected]",
        "subject": "Hello from the API",
        "html": "<p>It works.</p>" }'
2

Verify your domain. DKIM, SPF, DMARC. Don't send from a domain you haven't authenticated.

3

Use idempotency keys. One per logical send. Retries return the original message instead of double-sending.

4

Connect your agent. Point Claude, Cursor, ChatGPT, or anything running MCP at api.nitrosend.com/mcp and the whole stack runs in plain language. Twenty-five tools.

That works on the free plan. Transactional sends, campaigns, automation flows, contacts, segments, sending domains. Auth is a bearer token, not an OAuth dance.

We built the agent side to prove a point. One prompt in Codex. Ninety seconds later, three branded emails, live and sending. No dashboard. No editor. No QA cycle.

The REST side holds up on its own too. When our MCP couldn't reach one of our accounts, Claude built our entire launch email on the public REST API alone: two design variations, drafts, and test sends, in about eighteen minutes. The API is not the fallback. It's a first-class way in.

The dashboard was never the product

I've been doing email for a decade. My companies have sent over 6 billion emails. And for that entire decade, every email API came bolted to the thing that actually ate everyone's time: the dashboard.

The first time was almost an accident. We built an email retention system for Bluethumb, the art marketplace we'd scaled past $100 million in sales, and it worked well enough that in 2015 we spun it out as SmartrMail. That grew to 12,000 customers and became the number one email app on Shopify before Relay Commerce acquired it in 2022. So when we raised AU$700,000 to start Nitrosend, the pitch fit in one line: an ESP with no dashboard.

At SmartrMail I watched every single customer waste hours dragging composer blocks, doing work that AI can now do in seconds. Every campaign could have been a single sentence to AI. The design, the logic, the personalisation, the send. All of it.

The dashboard was never the product. It was the bottleneck.

C Claude MCP
Drafted campaign: 3 emails, 2 segments, staged send.
Approval gate
a human approves every send
Staged → sent
Welcome - sent
Receipt - sent
Digest - held
The agent does the typing. You're the director, not the operator.

The incumbents' answer is an AI composer stapled to that same dashboard. They all produce the same email. Hero icon, three-card grid, generic palette, "Read more" button, plain footer. The honest version is an agent that knows email, driving a platform built for it, with you approving every send. The agent does the typing. You stay in control. In 2026 the job changed: the agent builds the campaign, segments the audience, stages the send. You're the director, not the operator.

That isn't a thesis, it's our telemetry. Of our accounts active in the last thirty days, almost twice as many work through agents over MCP as through the UI, and agents make about 94 percent of all tool calls on the platform. The humans spend their time in exactly two places: the campaign editor and the flow editor, approving and tweaking what the agents built.

Everything the email API covers

Sending email programmatically is one REST call from any language. No SMTP library, no port 25, no connection management. If your language can make an HTTP request, it can send email.

My take: the language guides are where most providers hide their worst docs. Ours are the first thing agents read, so they have to be exact.

A webhook is an HTTP callback: when something happens, the platform POSTs the event to your URL. For email, that means your app hears about deliveries, opens, and bounces the moment they happen, instead of polling for them.

Webhooks are events your agent can act on. A bounce fires, the agent suppresses the contact and retries on a clean address, and you read about it afterwards.

An email validation API checks whether an address is real and deliverable before you send to it: syntax, domain, MX records, mailbox existence. Bad addresses bounce, and bounces wreck sender reputation.

Most teams bolt on a separate verification tool. Verification should live inside your contacts, where the send already happens. In Nitrosend it's part of contact enrichment, not another subscription.

An email CLI sends and manages email from the command line: your terminal, a CI pipeline, a cron job, or a headless agent. Same platform, no HTTP client needed.

We shipped a CLI because agents run headless. The same commands you type, an agent types faster.

Guides

Free plan: 8,000 emails to start, then 500 a month. Full API, MCP, and CLI access. No card.

The dashboard era is over. I don't think anyone's going to miss it.

First send in thirty seconds.

Simple pricing. Unlimited contacts.

Every plan includes full stack emailing: Flows, Newsletter Campaigns and Transactional Email, plus our NitroWheel LLM and all agent integrations (Claude, ChatGPT, Codex, Cursor and others). Pay for what you send, not who you store.

Free
$0
forever
  • Emails 8,000then 500/mo
  • Email types Transactional & Marketing
  • AI actions 20/mo
  • Contacts Free & Unlimited
  • Brands 1
  • Seats 1
Start free
Ultra
$100
per month
  • Emails 125,000/month
  • AI actions 5,000/mo
  • Brands 5
  • Seats 10 · Domains 3
  • Frontier AI Included
  • Dedicated IP Available
Get started
Enterprise
$300
per month
  • AI actions Unlimited
  • Unlimited brands & domains Included
  • SSO / SAML Included
  • 99.9% SLA Included
Get started

Free forever. No credit card required. See full comparison →