Transactional email service for your application
Updated
A transactional email is sent because a specific person just did something, or something just happened to their account. They are waiting for it. That expectation is what makes this kind of email different from a newsletter, and it is why delivery speed and reliability matter more than open rates.
What counts as transactional
| Email | Trigger | Time sensitivity | |---|---|---| | One-time password | Login or signup attempt | Seconds | | Password reset link | "Forgot password" request | Minutes | | Email verification | Account creation | Minutes | | Receipt or invoice | Successful payment | Minutes to hours | | Order or shipping update | State change in fulfilment | Hours | | Security alert | New device, changed credential | Minutes |
Newsletters, promotions and drip campaigns are not transactional. Inboxili handles those too, from the campaigns and automation tools in the dashboard. See transactional vs marketing email for where the line sits.
How sending works with Inboxili
Your backend makes one HTTP request per email. Inboxili renders the message, checks that the sender is allowed, sends it, and returns a message ID.
curl https://api.inboxili.com/api/v1/transactional/send \
-H "Authorization: Bearer $INBOXILI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "ada@example.com",
"from_email": "hello@yourdomain.com",
"from_name": "Acme",
"subject": "Your Acme verification code",
"html_body": "<p>Your code is <strong>{{code}}</strong>. It expires in 10 minutes.</p>",
"template_data": { "code": "482913" }
}'
A successful call returns HTTP 200 with a body like {"status": "sent", "message_id": "..."}. If you send faster than 100 emails a minute, the extra emails are queued and answered with HTTP 202 and "status": "queued". Failures return {"error": {"code": "...", "message": "..."}}. The transactional email API page lists every field and error you should handle.
Use an SDK or plain HTTP
| Stack | Install | Guide |
|---|---|---|
| Node.js, TypeScript | npm install @inboxili/node | Node.js |
| Python | pip install inboxili | Python |
| PHP | composer require inboxili/inboxili | PHP |
| Laravel | composer require inboxili/inboxili-laravel | Laravel |
| Django, Next.js | Use the Python or Node package | Django, Next.js |
Any other language can call the REST endpoint directly.
The emails people send with it
- Account security: OTP codes, email verification, password resets, security alerts.
- Money: invoices and payment confirmations.
- Commerce: order confirmations and shipping notifications, covered in ecommerce email.
- Product: welcome emails and appointment reminders.
Templates and merge data
Build a template in the dashboard's block editor (text, image, button, divider, spacer, social and HTML blocks), then send it by template_id and fill its {{merge_tags}} from template_data. Or send inline HTML. Use templates for stable emails such as receipts, and inline HTML for anything your release process changes often.
Delivery events
Register a webhook and Inboxili posts signed JSON events. Every send produces delivered, bounced or complained events, and campaign emails also produce opened, clicked and unsubscribed. The X-Inboxili-Signature header is a hex HMAC-SHA256 of the raw body, so you can reject forged requests. Bounces and complaints add the address to your suppression list, and every API send is logged in the dashboard with its status.
Before your first send
- Create a workspace and verify a sending domain in the Deliverability Center. Sends from an unverified sender are rejected with
sender_not_verified. - Create an API key under Settings, Developer, with the
transactional:sendscope. The full key is shown once. - Optionally build a template in the dashboard and reference it by
template_id, filling its merge tags fromtemplate_data. - Register a webhook if you want delivery events such as
delivered,bouncedandcomplainedpushed to your application.
What to know before you commit
Being specific about limits saves you a migration later.
- One recipient per request (
tois a single address). - No attachments, CC or BCC fields in the API today.
- No SMTP endpoint. Integration is over HTTPS only.
- Each key delivers up to 100 emails a minute. Faster sends are accepted and queued (HTTP 202), up to 20,000 waiting, and delivered in order. Your plan has its own sending limits too.
- There is no idempotency key. If a request times out, do not blindly retry, or the user may get two codes.
If those fit your product, the API is quick to integrate and sends are logged per workspace, including failures and provider message IDs.
Deliverability is mostly your setup
Whichever provider you use, inbox placement for transactional mail depends on authentication and content you control: a verified domain with SPF and DKIM aligned to your From address, a DMARC policy, a recognisable From name, and messages that contain only what the user asked for. Inboxili's Deliverability Center walks through the DNS records. We do not promise inbox placement, because no provider can.
Pricing
Plans and sending limits are on the pricing page. The free plan lets you try the API before you pay.
Where next
- Implement it: Transactional email API, then your language: Node.js, Python, PHP.
- Pick a workflow: OTP, password reset, invoice.
- Check the full reference in the developer docs.
Frequently asked questions
- What is a transactional email?
- An email triggered by an action or event in your product, sent to one person, and expected by them. Examples are verification codes, password resets, receipts and shipping updates.
- Can I send marketing content in a transactional email?
- Keep them separate. Promotional content in a transactional message can change how the message is treated legally and by mailbox providers. Inboxili tracks API sends separately from campaigns.
- Does Inboxili support SMTP?
- Not today. Inboxili sends transactional email through a REST API. If your application can only speak SMTP, you cannot point it at Inboxili yet.
- Do I need to verify a domain?
- Yes. The API only sends from a registered sender on a verified domain, which also lets you publish DKIM, SPF and DMARC records for that domain.
Send your first transactional email
Create a workspace, verify a domain, and make your first API call.