Transactional email API your product can rely on.
Lettr is the email sending API for developers: password resets, receipts and alerts go out by REST, an SDK or SMTP, and every send shows up in the logs. Free for 3,000 emails a month.
Test with a sandbox key before you touch DNS.
One request.
curl -X POST https://app.lettr.com/api/emails \
-H "Authorization: Bearer $LETTR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: reset-4821" \
-d '{
"from": "hello@yourdomain.com",
"to": ["alex@example.com"],
"subject": "Reset your password",
"html": "<p>Your reset link is inside.</p>"
}'import { Lettr } from 'lettr';
const client = new Lettr(process.env.LETTR_API_KEY!);
const { data, error } = await client.emails.send({
from: 'hello@yourdomain.com',
to: ['alex@example.com'],
subject: 'Reset your password',
html: '<p>Your reset link is inside.</p>',
});import os
import lettr
client = lettr.Lettr(os.environ["LETTR_API_KEY"])
response = client.emails.send(
from_email="hello@yourdomain.com",
to=["alex@example.com"],
subject="Reset your password",
html="<p>Your reset link is inside.</p>",
)use Lettr\Laravel\Facades\Lettr;
Lettr::emails()->sendHtml(
from: 'hello@yourdomain.com',
to: 'alex@example.com',
subject: 'Reset your password',
html: '<p>Your reset link is inside.</p>',
);use Lettr\Lettr;
$lettr = Lettr::client(getenv('LETTR_API_KEY'));
$lettr->emails()->sendHtml(
from: 'hello@yourdomain.com',
to: 'alex@example.com',
subject: 'Reset your password',
html: '<p>Your reset link is inside.</p>',
);At a glance.
| Endpoint | POST https://app.lettr.com/api/emails |
|---|---|
| Auth | Bearer API key |
| SDKs | Node.js, PHP, Laravel, Python, Go, Rust, Java |
| SMTP | smtp.lettr.com, port 465 or 587 (STARTTLS) |
| Per request | Up to 50 recipients |
| Webhooks | 22 event types, retried for about 35 hours |
| Logs | Kept for about 10 days |
| Free tier | 3,000 emails a month, no card |
| Data | Account data stored in the EU |
What does the email API do?
What every transactional email needs, from the first request to the last bounce.
-
REST API and SMTP
One POST request, or point your SMTP settings at Lettr. Same logs either way.
-
Official SDKs
Node.js, PHP and Laravel, Python, Go, Rust and Java, typed and documented.
-
No double sends
Retry with the same Idempotency-Key within 24 hours and get the first result back.
-
Webhooks
22 event types, from delivery to bounce, posted to your endpoint as they happen.
-
Searchable logs
Every send and event on one timeline, kept for about 10 days.
-
Templates your team edits
Built in a drag-and-drop editor and sent by template ID, so copy changes need no deploy.
How do you get started?
Three steps from an empty account to production.
-
Create a sandbox key
Every send goes to your own inbox from a pre-verified domain. No DNS, no cost.
-
Send a request
POST to /api/emails with an SDK, cURL or SMTP. You get a request ID back.
-
Verify your domain
Add the DNS records Lettr shows you, swap in a live key, and send to real users.
Does Lettr support idempotency keys?
Yes. Send an Idempotency-Key header, and a retried request never sends the same password reset or 2FA code twice.
24 hours
A retry with the same key, payload and API key inside 24 hours returns the original result.
Replays are free
A replayed request sends nothing and doesn't count toward your quota.
Conflicts are caught
The same key with a different payload returns 409 instead of a second email.
Sends and campaigns
Works on POST /emails and POST /campaigns. Scheduled sends ignore it.
How do you track delivery and bounces?
With webhooks. Lettr posts each delivery, bounce and complaint to your endpoint, so your app knows without polling. Failed posts are retried 7 times over about 35 hours.
Message 7 events
message.injectionmessage.deliverymessage.bouncemessage.delaymessage.out_of_bandmessage.spam_complaintmessage.policy_rejection
Engagement 6 events
engagement.openengagement.initial_openengagement.clickengagement.amp_openengagement.amp_initial_openengagement.amp_click
Generation 2 events
generation.generation_failuregeneration.generation_rejection
Unsubscribe 2 events
unsubscribe.list_unsubscribeunsubscribe.link_unsubscribe
Inbound relay 5 events
relay.relay_injectionrelay.relay_deliveryrelay.relay_rejectionrelay.relay_tempfailrelay.relay_permfail
22 event types, each one in your logs too.
Event payloads in the docsHow does Lettr protect deliverability?
Authentication, clean lists and early warnings, set up for every sending domain.
SPF, DKIM, DMARC and BIMI
Authentication set up with guided DNS records, and your logo in Gmail and Yahoo with BIMI.
One-click DNS
Domain Connect adds every record through Cloudflare, with no copying and pasting.
Your own domains
Custom return-path and tracking domains, so SPF and links align with your brand.
Bounce tracking
Bounces, delays and complaints arrive as webhooks. Soft bounces retry with backoff.
Automatic suppression
Hard bounces, complaints and unsubscribes are suppressed before they hurt your reputation.
Alerts and status
Alerts for DNS problems and API failures, and a public status page.
Which emails is it for?
The ones your product sends on its own, the moment a user does something. Campaigns go through their own queue, so password resets don't line up behind them.
- Welcome and email verification
- Password resets and magic links
- Security alerts and 2FA codes
- Receipts and invoices
- Usage and limit warnings
- Account and system updates
How much does it cost?
Emails are priced per send, campaigns per stored contact. Unlimited campaigns.
Your total
$25 a month
- Transactional Pro · 50,000 emails · $15
- Marketing · 2,000 contacts · $10
More ways to send.
- SMTP relay Send from any app or framework without code changes.
- Inbound email API Receive email as JSON on your own endpoint.
- Free email API What the free tier includes, and its limits.
- Deliverability Authentication, suppressions and bounce handling.
- MCP server Send and check emails from Claude, ChatGPT or Cursor.
- Lettr vs Resend How the two compare, feature by feature.
Email API questions.
-
Create an API key and send a POST request to https://app.lettr.com/api/emails with a Bearer token and a JSON body with from, to, subject and html or text, or make the same call from an SDK. The response returns a request_id. With a sandbox key you can do this before you set up any DNS.
-
Yes. A sandbox API key sends every email to your own inbox from a pre-verified sandbox domain, so you can make real requests without verifying a domain. Sandbox sends are free and don't count toward your quota.
-
Yes. Send an Idempotency-Key header with POST /emails. Retrying with the same key, payload and API key within 24 hours returns the original result instead of sending a second email, and replays don't count toward your quota. Scheduled sends ignore the header.
-
Free covers 3,000 emails a month (up to 100 a day) on one sending domain, with no credit card. Pro is $15 a month for 50,000 emails or $30 for 100,000, and extra emails cost $0.80 per 1,000.
-
Yes, on the same account. Use the REST API or an SDK from code, or point any app at smtp.lettr.com on port 465, or 587 with STARTTLS, with lettr as the username and your API key as the password. Logs and webhooks work the same either way; editor templates are sent through the API.
-
Node.js and TypeScript, PHP with a Laravel package, Python, Go, Rust and Java. The docs also have guides for Next.js, Nuxt, Django, Flask, FastAPI, AWS Lambda, Vercel Functions and Cloudflare Workers. For anything else, including Ruby and .NET, use the plain REST API or SMTP.
-
3 requests a second per team, shared across your live API keys, with up to 50 recipients per request. Going over returns 429 with a Retry-After header, and every response carries X-RateLimit headers. Sandbox keys have their own limits (20 a second, 120 a minute, 2,000 a day). Enterprise limits are custom.
-
Lettr posts 22 webhook event types, including delivery, bounce, delay and spam complaint, to your endpoint with no auth, Basic Auth or OAuth 2.0. Failed webhook deliveries are retried 7 times over about 35 hours, and soft bounces are retried automatically. Each message also has a timeline in the logs.
-
SPF, DKIM, DMARC and BIMI with guided DNS, one-click setup through Cloudflare's Domain Connect, custom return-path and tracking domains, automatic suppression of bounces, complaints and unsubscribes, and alerts for DNS problems and API failures. Live status is on uptime.lettr.com.
-
Yes. Templates are built in a drag-and-drop editor and your code sends them by template ID with merge tags, so the team changes copy and layout without a deploy. New template versions can be scheduled to go live later.
-
Yes. You can schedule a send, list scheduled sends and cancel them through the API. One request takes up to 50 recipients, and AMP content is supported.
-
Account data is stored in the EU. Lettr processes personal data under the GDPR, with a data processing agreement in the Terms.
-
All of them send transactional email by API. Lettr adds a drag-and-drop editor your non-technical teammates can use for the same templates, and marketing campaigns in the same account on one invoice. The comparison pages go through each one.