Test mode that never delivers
rb_test_ keys accept real requests and simulate the outcome. Send to bounced@ or complained@ the sandbox domain to see every case.
A simple email API: send receipts, sign-in links and alerts with one HTTPS request. Test keys that never deliver, safe retries with idempotency keys, batches of 100 and a searchable log of every email, on the same plan as your marketing 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>"
}' A small API that does the important things right.
rb_test_ keys accept real requests and simulate the outcome. Send to bounced@ or complained@ the sandbox domain to see every case.
Send an Idempotency-Key header and a retried request returns the first email instead of sending twice, for 24 hours.
Up to 100 different emails in one call to POST /api/v2/emails/batch, each with its own recipients and content.
Every email with its events (queued, sent, delivered, delayed, bounced, complained) in the dashboard and through the API.
Sending-only or full-access keys, limited to one domain if you like. Shown once, revocable any time.
Base64 attachments up to 40 MB, inline images by content ID, custom headers, and tags to find emails later.
From API key to your first test email, with nothing to install.
Developers › API keys in the dashboard. Start with a test key.
Publish the DKIM record so mail is signed as you. How.
POST to /api/v2/emails, then switch to your live key.
Digests, notifications and reminders: up to 100 different emails per request, validated as a whole before anything is sent.
Batch referencecurl -X POST https://robustemail.com/api/v2/emails/batch \
-H "Authorization: Bearer $ROBUSTEMAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"from": "Acme <hello@acme.com>",
"to": "jane@example.com",
"subject": "Your weekly summary",
"html": "<p>Hi Jane, here is your week.</p>"
},
{
"from": "Acme <hello@acme.com>",
"to": "sam@example.com",
"subject": "Your weekly summary",
"html": "<p>Hi Sam, here is your week.</p>"
}
]' | Method | Path | What it does | Key |
|---|---|---|---|
| POST | /api/v2/emails | Send one email | sending |
| POST | /api/v2/emails/batch | Send up to 100 emails | sending |
| GET | /api/v2/emails | List emails, filter by status | full |
| GET | /api/v2/emails/{id} | One email with its events | full |
| GET | /api/v2/domains | Your sending domains | full |
| POST | /api/v2/api-keys | Create, list and revoke keys | full |
| POST | /api/v2/email-validations | Validate an address, or a batch | sending |
Managing lists and campaigns from code? See the marketing API.
Copy-and-paste examples for 23 languages and frameworks. If it can make an HTTPS request, it can send email.
Yes. API emails come out of the same monthly volume as your campaigns, so marketing and transactional email are on one bill. See pricing.
Not yet. The API is plain HTTPS and JSON, so any HTTP client works. The docs have copy-and-paste guides for Node.js, Python, PHP, Ruby, Go, Java, C# and Rust, and frameworks such as Django, Rails, Laravel, Next.js and SvelteKit.
Yes. Use a test key, or send to an address at sandbox.robustemail.dev. Test mode and sandbox.
Any domain you verify with a DKIM record. Verify your domain.
Up to 600 requests a minute per API key, and up to 100 emails per batch request. Rate limits.
From $12 a month for 15,000 emails.