A transactional email API built for Kenyan apps and businesses
JMSURF Mail gives your app one HTTPS endpoint for every email it has to send: order receipts, password resets, one-time codes, invoices and account alerts. You send JSON, we deliver it from your own domain and keep a log of what happened.
What a transactional email API does
A transactional email is a message one person gets because of something they did: they bought, signed up, asked for a password reset or were sent an invoice. These emails have to arrive in seconds and land in the inbox, not in spam. An email API lets your code hand the message to a delivery service with one request, instead of running and maintaining a mail server yourself.
With JMSURF Mail your backend calls POST /emails with the sender, the recipients, a subject and an HTML or text body. The answer comes back straight away with an id and a status. Everything after that (delivered, bounced, opened, clicked) is recorded against that id and can be pushed to your server by webhooks.
One request to send
curl https://api.jmsurfmail.co.ke/api/v1/emails \
-H "Authorization: Bearer $JMSURF_MAIL_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1024-confirmation" \
-d '{
"from": "Your Shop <[email protected]>",
"to": ["[email protected]"],
"subject": "Your order #1024 is confirmed",
"html": "<h1>Asante!</h1><p>We are packing your order.</p>",
"tags": ["order"]
}'The response is { "id": "…", "status": "sent" }. sent means the message was accepted for delivery; later events update the status.
What the API supports
| Capability | How it works |
|---|---|
| Single send | POST /emails with from, to, subject and html or text. Up to 50 recipients across to, cc and bcc. |
| Batch send | POST /emails/batch with up to 100 emails in one request; each result comes back in the same order. |
| Idempotency | Send an Idempotency-Key header (for example your order number). A retried request returns the first result and never sends twice. |
| Templates | Save an email once with {{placeholders}} and send it by alias with variables. See templates. |
| Attachments | Up to 20 base64 attachments, 10 MB per email in total. |
| Tags and headers | Up to 8 tags to find emails later, and custom X- headers. |
| Email + SMS | Add an sms object and a text goes out through your JMSURF SMS account in the same call. See email and SMS. |
| Look-ups | GET /emails/{id} returns one email with its event timeline; GET /emails lists recent emails, newest first. |
| Domains | Add, verify, list and remove sending domains through the API as well as the dashboard. |
| Usage | GET /usage shows your plan, emails sent this month and today, and your allowance. |
Built for safe sending
- Your domain only. The
fromaddress must be on a domain you verified, so nobody can send in your name from your account. See domain verification. - Scoped keys. Full-access keys can send, read logs and manage domains. Send-only keys can only send, which suits small services and plugins. Keys are stored hashed and shown once.
- Bounce protection. Addresses that hard-bounced or complained before are skipped automatically, which protects your sender reputation. See delivery logs.
- Clear errors. Every error has an HTTP status and a short code such as
domain_not_verified,validation_errororquota_exceeded, with a message that says what to fix. - Rate limits. 20 requests a second per API key and 60 per IP address, which is plenty for transactional traffic and stops runaway loops.
Who it is for
JMSURF Mail is used by the JMSURF products themselves (POS, ISP billing, DASH, SMS and others send their system emails through it) and is open to any company or developer. It fits SaaS apps, online shops, schools, internet service providers and anything that sends password resets and OTP codes.
It is for transactional email and mail people asked for. Bulk marketing to bought or scraped lists is not allowed and closes the account.
Get started
- Create a free account: 100 emails a month to try it, no card needed.
- Add your domain and copy the DNS records into your DNS host.
- Create an API key and send your first email with one of the code guides.
Questions
- Do I need my own domain to use the API?
- Yes. Emails go out from an address at a domain you verified (for example [email protected]). That is what lets them pass inbox checks.
- Which programming languages work?
- Any language that can make an HTTPS request with JSON: PHP, Node.js, Python, Java, C#, Go and others. The guides show PHP, Node.js and Python.
- Can I send to many people at once?
- Up to 50 recipients per email and up to 100 emails per batch request. For more, send several batches.
Send your first email today
Free plan with 100 emails a month, no card needed. Questions? WhatsApp or call +254 712 504 593, or email [email protected].