Email API
A simple HTTPS API for transactional email from your own verified domain, with events for every message. 4,000 emails a month are included, even on Free.
HTTPS only · No SMTP relay · No marketing campaigns
Send, check status and fetch events with plain JSON over HTTPS.
@torvath/mail for Node 18+, Cloudflare Workers, Bun and Deno.
Delivered, bounced, complained, opened and clicked, by webhook or a queue you fetch.
Every send carries an idempotency key, so a retry after a lost connection is safe.
Saved templates with variables, filled in safely (Business).
Check everything without sending anything or using your allowance.
Send
Send from any address on one of your verified domains, with attachments, tags and your own metadata.
curl https://api.torvathmail.com/v1/emails \
-H "Authorization: Bearer $TORVATH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "billing@kaveritextiles.in",
"to": "buyer@example.com",
"subject": "Invoice 1042",
"html": "<p>Your invoice is attached.</p>"
}'Events
Turn on the events you want. Get them pushed to your webhook, signed the Standard Webhooks way, or fetch them from a queue and acknowledge each one.
Testing
A test key checks every request as usual, gives the email an id and fires its events straight away, without sending or counting against your allowance.
| Item | Free | Business |
|---|---|---|
| Emails included a month | 4,000 | 4,000 + 1,000 per person |
| After that | Upgrade to send more | ₹40 per 1,000, with a spending limit you set |
| Events kept for | 7 days | 30 days |
| Templates | No | Yes |
| Open and click tracking | No | Yes |
No. The API is for transactional email: messages a person expects because of something they did, like an invoice or a sign-in code.
No. Sending is over HTTPS only.
Any address on one of your organisation's verified domains.
Each recipient of each email. An email to three people counts as three.
Get an API key, verify your domain and call one endpoint.