api.email documentation

api.email is an email API for developers. It does two jobs through one account and one set of keys: it sends transactional email, such as password resets, login codes, receipts and notifications, and it receives email sent to your domain and delivers each message to your app as a signed JSON webhook.

Everything is plain HTTPS and JSON. The base URL is https://api.email/v1, and every request carries your API key in the Authorization header:

curl https://api.email/v1/emails \
  -H "Authorization: Bearer $API_EMAIL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"Acme <[email protected]>","to":"[email protected]","subject":"Hi","text":"Hello from api.email"}'

A successful call returns the email’s id and status, for example {"id": "em_8f2c1a", "status": "queued"}. Errors come back as {"error": {"code", "message", "hint"}} with a code you can branch on.

Where to start

  • Quickstart: get a key, add your domain with two CNAME records and send your first email in a few minutes.
  • Node.js SDK: npm install api-email for typed calls with retries, idempotency keys and webhook verification built in.
  • Domains: the two DNS records, verification states and the DMARC record we recommend.
  • Sending email: every field of POST /v1/emails, attachments, scheduling, tags and idempotency keys.
  • SMTP: use the same key with any framework that already speaks SMTP.
  • Receiving email: point an MX record at api.email, create routes and handle the email.received payload.
  • Webhooks: subscribe to delivery events and verify the signature on every request.
  • API reference: every endpoint with request and response examples.
  • MCP server and curl api.email: let a coding agent integrate the API for you.

If you are deciding between the API and SMTP, start with the API: it returns an id you can track, supports idempotency keys and needs only an HTTPS client. Use SMTP when a CMS, framework or device can only speak SMTP.

Get API key

Create your api.email account

What do you need?

By continuing you agree to the Terms and Privacy Policy.