Quickstart
Run MTAKit, create an API key and send your first email in a few minutes.
Overview
MTAKit is developer-first email infrastructure available across three deployment modes from one codebase and API: Managed Cloud (mtakit.com), Zero-PII Hybrid BYOC (hosted Control Plane + your own VPC Data Plane & KumoMTA), and Air-Gapped On-Premise.
It routes every message across your own mail server (KumoMTA / Postfix) with automatic failover to AWS SES, Postmark, Resend, or any SMTP relay, plus built-in 1-click DNS provisioning, a 4-engine deliverability suite, Enterprise OIDC/SAML SSO, and tamper-proof SHA-256 audit logs.
Every endpoint lives under /api/v1 on your chosen plane. The examples in these docs use https://mail.example.com as a placeholder for it.
1. Run MTAKit
You need Node.js 22 or newer and Docker. The compose file starts PostgreSQL, Redis and Mailpit, a local mail catcher that stands in for a real mail server during development.
npm install
npm run docker:up # PostgreSQL, Redis, Mailpit
npm run dev:web # API and dashboard on http://localhost:3000
npm run dev:worker # delivery worker (second terminal)Details and the production setup are on the self-hosting page.
2. Create a workspace
Open /login, choose New Workspace and register. The first user owns the workspace and gets every permission. MTAKit also creates a first provider route that points at the mail server from your environment (MTA_SMTP_HOST), so you can send right away.
3. Create an API key
In the dashboard, open API Keys and create a key. The full key is shown once, so copy it immediately. Choose a live key for this guide: it starts with mtk_live_. Keys that start with mtk_test_ run everything but never send real email.
export MTAKIT_API_KEY="mtk_live_..."4. Send an email
curl -X POST https://mail.example.com/api/v1/emails \
-H "Authorization: Bearer $MTAKIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <hello@acme.com>",
"to": "customer@example.com",
"subject": "Welcome to Acme",
"html": "<p>Your account is ready.</p>"
}'The API answers with 202 Accepted as soon as the message is stored and queued. Delivery happens in the worker.
{
"id": "f59aee24-ea49-48d1-92b1-b0c510ce02d4",
"status": "queued",
"stream": "transactional",
"recipients": 1,
"scheduledAt": null,
"queuedInRedis": true,
"spamCheck": {
"score": 0,
"verdict": "good",
"rules": []
}
}Next steps
- Use any of the 8 official SDKs (Node.js, Python, Go, Rust, PHP, .NET, Java, Ruby) or the OpenAPI 3.1 spec instead of raw HTTP.
- Create a template and send it with variables.
- Add your domain and auto-connect or publish DKIM, SPF and DMARC records.
- Run a live DNS audit, pre-send spam check, or IP warm-up plan.
- Add a second provider (SES, Postmark, Resend, SMTP) so mail keeps flowing when the first one fails.
- Deploy a Hybrid BYOC Data Plane or configure Enterprise SSO & SIEM Audit.
- Add a webhook to hear about bounces and failures.
- Use a test key in CI so no real email leaves the server.
- Restrict API keys to the permissions each service needs.