Transactional email API
Password resets, magic links, receipts and alerts, all sent through one clean endpoint, authenticated on your domain and tracked from request to inbox.
POST /v1/emails with a JSON body. A typed Node.js SDK, React Email support and copy-paste quickstarts for Python, PHP, Go, Ruby, Java, .NET, Rust, Elixir and cURL.
Send an Idempotency-Key header and repeated requests return the original email instead of sending twice, which is essential for queues and serverless retries.
Send up to 100 emails per request, or schedule delivery up to 30 days ahead with an ISO timestamp. Reschedule or cancel any time before it goes out.
Attach files up to 10 MB in total, set custom headers, and tag emails so you can filter logs and webhook events by feature or customer.
Create sending-only keys restricted to a single domain, so a leaked key can't send from anywhere else.
Every API request is stored with its request and response body, status and latency. Every email shows its full event timeline.
curl -X POST https://stackemails.com/v1/emails \
-H "Authorization: Bearer se_live_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: reset/8271" \
-d '{
"from": "Acme <security@mail.acme.com>",
"to": "ada@example.com",
"subject": "Reset your password",
"html": "<p>Click <a href=\"https://acme.com/reset\">here</a> to reset.</p>"
}'Emails are queued immediately and handed to Amazon SES within seconds. Delivery to the recipient's inbox typically completes in a few seconds, depending on the receiving server.
Purely transactional messages such as receipts and password resets generally don't. Stack Emails is for this kind of transactional email; promotional email belongs on a separate marketing platform.
Addresses that hard-bounced or complained are on your suppression list, and the send is skipped so your reputation isn't harmed. You can remove an address from the list in the dashboard.
Email webhooks
Know exactly what happened to every email. Webhooks push delivery, engagement and inbound events to your endpoint the moment they happen.
SMTP relay
Not everything can call a REST API. Point any SMTP client at Stack Emails and get the same domain checks, suppression lists, logs and webhooks.
MCP server for AI agents
A native Model Context Protocol server lets AI assistants send and read email through Stack Emails, with the same guardrails as your API.
Create a free account, verify your domain and send in minutes.