Email that lands.
Code that stays small.
Pigeon sends your app's password resets, receipts and notifications from your own domain. Make one HTTPS call and you're done. Pigeon handles queueing, retries, bounces and deliverability, so you can get back to your product.
await fetch(`${PIGEON_URL}/v1/emails`, {
method: 'POST',
headers: { Authorization: `Bearer ${PIGEON_KEY}`,
'content-type': 'application/json' },
body: JSON.stringify({
from: 'Acme <receipts@acme.io>',
to: ['ada@customer.com'],
template: 'receipt',
template_data: { name: 'Ada', total: '€120' },
idempotency_key: `order-${order.id}`,
}),
});
// 202 Accepted · { "status": "queued" }
How it works
From zero to your first email before your coffee gets cold.
No mail servers, no SMTP settings, no vendor dashboards to learn. Three steps, and two of them we do with you.
Tell us about your app
Email us and say what you're building. We create a project for you and send you an API key.
Verify your domain
We give you the exact DNS records, already formatted for Namecheap, Cloudflare or GoDaddy. Paste them in and your mail is signed and authenticated (DKIM, SPF and DMARC) as soon as DNS catches up.
Send
One POST /v1/emails with plain JSON. Copy the ready-made helper for Node.js, Python or Go from the docs.
Everything you'd end up building yourself
All the boring, hard parts of email are already done.
Sending one email is easy. Sending thousands reliably, without landing in spam or sending anything twice, isn't. Pigeon was built for the second one.
Fast, non-blocking API
The call returns as soon as your email is safely queued. Your request handler never waits on a mail server.
Never sends twice
Send an idempotency key, retry as often as you like, and the email still goes out once. Timeouts stop being scary.
Deliverability built in
Every email is DKIM-signed for your domain, with SPF and DMARC alignment. Bounces and spam complaints are suppressed automatically.
Templates
Store templates once and send with {{variables}}. Preview the rendered result before anything goes out.
Attachments & inline images
Invoices, tickets and calendar invites: attach up to 10 files. Embed your logo with cid: so it shows even when the reader blocks remote images.
Know what happened
Every email has a status: queued, sent, delivered, bounced or complained. Fetch it by id whenever you need to.
Email log with previews
Search every email by day, domain, status or recipient, and see it exactly as the recipient did. Kept for 90 days.
Mistakes caught early
Bad addresses, unverified senders and blocked file types are rejected straight away with a clear error code, not hours later.
No SDK, no lock-in
It's plain JSON over HTTPS. Your helper is 30 lines you own, with nothing to install, upgrade or audit.
Reliability
Your password reset can't afford to get lost.
Transactional email is part of your product. When it doesn't arrive, users get locked out, orders feel fake and support tickets pile up. Pigeon is built so that doesn't happen.
- Queued before we say yes. A
202means your email is stored. If something hiccups downstream, it's retried with backoff. - At most once, even under retries. Repeat requests with the same idempotency key, and duplicate deliveries inside the pipeline, are detected and dropped.
- A sender reputation that protects everyone. Addresses that bounce or complain are suppressed for every project, so one bad list can't hurt your deliverability.
- Nothing is silent. If an email fails for good, it says
failedand tells you why inlast_error.
Developer experience
The API you'd design if you were in a hurry and had good taste.
One resource, predictable JSON and error codes you can switch on. The docs give you a complete, copy-paste client for your language, with retries and idempotency already wired in.
- Errors that tell you what to fix:
sender_domain_not_allowed,invalid_recipientwith the bad addresses listed,attachments_too_large, and more. - Works from any backend: Node.js, Python, Go, or anything that can make an HTTPS request.
- Tags for your own reporting: label emails with
invoice: 42and find them later.
from pigeon import api
api("POST", "/v1/emails", {
"from": "Acme <hello@acme.io>",
"to": [user.email],
"template": "welcome",
"template_data": {"name": user.first_name},
"idempotency_key": f"welcome-{user.id}",
})
pdf, _ := os.ReadFile("invoice-42.pdf")
email, err := client.Send(ctx, pigeon.SendRequest{
From: "Billing <billing@acme.io>",
To: []string{"ada@customer.com"},
Subject: "Your invoice #42",
Text: "Hi Ada, your invoice is attached.",
Attachments: []pigeon.Attachment{
{Filename: "invoice-42.pdf", Content: pdf},
},
IdempotencyKey: "invoice-42-sent",
})
curl -X POST "$PIGEON_URL/v1/emails" \
-H "Authorization: Bearer $PIGEON_KEY" \
-H "content-type: application/json" \
-d '{
"from": "Acme <no-reply@acme.io>",
"to": ["ada@customer.com"],
"subject": "Your login code",
"text": "Your code is 482913. It expires in 10 minutes."
}'
# → 202 {"id": "8f1c…", "status": "queued", …}
Visibility
"Did the email go out?" Now you can answer in seconds.
Every email sent from your domain is logged and can be previewed for 90 days. Filter by today, last week, the last 30 days or any date range, then open the email and see exactly what the user received.
- Search by domain, status, recipient or subject. Find the one email a user says never arrived.
- Faithful previews, including inline images and attachments, with the full delivery timeline.
- Safe by design: previews never run scripts, follow links or trigger tracking pixels.
Built by Onja, for the teams shipping real products.
Pigeon is Onja's own email infrastructure, and now it can power your app too. When you need help, there's a team you can actually talk to.
FAQ
Questions developers ask first.
Can I send from my own domain?
Yes, and you should. Your emails come from you@yourdomain.com, signed with DKIM for your domain. We give you the DNS records to add, and you can use subdomains like mail.yourdomain.com too.
What kind of email is Pigeon for?
Transactional email: password resets, login codes, receipts, invoices, notifications and anything else your app sends in response to something a user did. It isn't a newsletter or bulk marketing tool.
Do I need an SDK or a special library?
No. It's JSON over HTTPS. The docs include a complete, copy-paste helper for Node.js, Python and Go that handles auth, errors and safe retries. If your language can make an HTTP request, you can use Pigeon.
What happens if my request times out?
Retry it with the same idempotency_key. If the first request did get through, Pigeon returns the original email and doesn't send it again. If it didn't, the email is sent now. Either way, your user gets exactly one.
Can I send attachments?
Yes. Up to 10 files and 10 MB per email, including inline images for your HTML. Executables and scripts are rejected up front so they can't hurt your deliverability.
How do I know whether an email was delivered?
Fetch it by id at any time to get its status: queued, sent, delivered, bounced or complained. The full event timeline is there too, and every email is also visible in the log, with a preview, for 90 days.
What are the limits?
Up to 50 recipients per email across to, cc and bcc, 10 attachments totalling 10 MB, and emails are kept for 90 days. If you need something different, talk to us.
How do I get started, or get help?
Email internal.development@onja.org. Tell us about your app and the domain you want to send from, and we'll set you up. The same address works for questions and support.
Stop babysitting email. Ship the feature.
Tell us what you're building and we'll get you set up. Most teams send their first email the same day.
Or write to us directly at internal.development@onja.org