A transactional email service with a simple API
Our transactional email service sends receipts, password resets, sign-in codes and alerts from your app with one HTTPS call. Test mode, safe retries and a searchable email log are included, on the same plan as your campaigns.
const res = await fetch("https://robustemail.com/api/v2/emails", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.ROBUSTEMAIL_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": "order-1042",
},
body: JSON.stringify({
from: "Acme <orders@acme.com>",
to: "jane@example.com",
subject: "Order #1042 confirmed",
html: "<p>Thanks for your order!</p>",
}),
});
const { id } = await res.json(); import os
import requests
res = requests.post(
"https://robustemail.com/api/v2/emails",
headers={
"Authorization": f"Bearer {os.environ['ROBUSTEMAIL_API_KEY']}",
"Idempotency-Key": "order-1042",
},
json={
"from": "Acme <orders@acme.com>",
"to": "jane@example.com",
"subject": "Order #1042 confirmed",
"html": "<p>Thanks for your order!</p>",
},
)
print(res.json()["id"]) $ch = curl_init("https://robustemail.com/api/v2/emails");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("ROBUSTEMAIL_API_KEY"),
"Content-Type: application/json",
"Idempotency-Key: order-1042",
],
CURLOPT_POSTFIELDS => json_encode([
"from" => "Acme <orders@acme.com>",
"to" => "jane@example.com",
"subject" => "Order #1042 confirmed",
"html" => "<p>Thanks for your order!</p>",
]),
]);
$email = json_decode(curl_exec($ch), true); curl -X POST https://robustemail.com/api/v2/emails \
-H "Authorization: Bearer $ROBUSTEMAIL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042" \
-d '{
"from": "Acme <orders@acme.com>",
"to": "jane@example.com",
"subject": "Order #1042 confirmed",
"html": "<p>Thanks for your order!</p>"
}' Live in three steps
Create a test key
Keys that start with rb_test_ check every request like a live key but never deliver anything.
Verify your domain
Publish the DKIM record we show you, so every email is signed as your own domain.
Send from your app
POST JSON to /api/v2/emails from any language, then switch to a live key.
What transactional email is
Transactional emails go to one person because of something they did: a receipt after a purchase, a password reset, a sign-in code, a shipping update. People expect them within moments, and they are often the most opened emails a business sends.
They are different from marketing email, which goes to many people at once and needs an unsubscribe link. Read transactional vs marketing email for the rules that apply to each.
Built for developers
- A small REST API. JSON in, an email ID out. No SDK needed: copy-and-paste guides for Node.js, Python, PHP, Django, Rails, Go, .NET and more.
- Test mode. Test keys and sandbox addresses simulate delivered, bounced, complained and delayed emails without sending anything.
- Safe retries. Send an Idempotency-Key and a retried request returns the first email instead of sending twice, for 24 hours.
- Batch sending. Up to 100 different emails in one request.
- An email log. Every email and its events (queued, sent, delivered, delayed, bounced, complained) in the dashboard and through the API.
- Scoped API keys. Sending-only or full-access keys, optionally limited to one domain.
One plan for app email and campaigns
API emails come out of the same monthly volume as your campaigns, so you never pay for two tools. The $12 Starter plan covers 15,000 emails a month and the $79 Pro plan covers 100,000, whether they are receipts, newsletters or a mix.
| Your app sends | Plus campaigns | Plan | Price |
|---|---|---|---|
| 5,000 emails a month | 8,000 a month | Starter (15,000) | $12 |
| 20,000 emails a month | 25,000 a month | Growth (50,000) | $44 |
| 60,000 emails a month | 80,000 a month | Business (150,000) | $119 |
Estimate your own numbers on the pricing page.
Deliverability for app email
- DKIM signing with your own domain, so receipts pass SPF, DKIM and DMARC checks.
- Bounced, complained and blocked addresses are removed before sending, which protects your reputation.
- Use a subdomain such as
mail.yourapp.comfor app email to keep its reputation separate from your campaigns.
Priced by the emails you send
Every feature on every plan. Choose the monthly volume you need.
Compare plansQuestions
Do I need a separate plan for transactional email?
No. The email API is included in every plan and shares the plan's monthly email volume with your campaigns.
Which languages can I use?
Any language that can make an HTTPS request. The docs have guides for Node.js, Python, PHP, Ruby, Go, Java, C#, Rust and frameworks such as Django, Rails, Laravel, Next.js and SvelteKit.
Can I test without sending real email?
Yes. Use a test key, or send to an address at sandbox.robustemail.dev. Test mode and sandbox.
How do I see what happened to an email?
Every email and its delivery events are in Developers › Emails, and available through GET /api/v2/emails/{id}.
Related
Send more email for less, starting today
15,000 emails for $12 a month. Every feature on every plan.