Email API for developers
Updated November 24, 20264 min read
What an email API solves
A transactional email API takes an HTTP request with the recipient, the subject and the content, and handles the rest: signing with your domain, delivering, retrying, telling you about bounces and complaints, and never writing again to an address that bounced.
Compared with SMTP from your own server, an API gives you an ID per message, responses your code understands and events by webhook. The differences, point by point, are in SMTP or API, and the list of what any provider should offer is in Transactional email with an API: what to look for.
What it costs
At Tellwing, transactional email has its own line of plans, with its own quota, that adds to your campaigns plan if you have one:
| Plan | Emails a month | Monthly | Yearly |
|---|---|---|---|
| API Free | 3,000 (up to 100 a day) | $0 | — |
| API Pro | 50,000 | $20 | $220 |
| API Pro | 100,000 | $35 | $385 |
| API Scale | 100,000, with 10 webhook endpoints and 600 requests a minute | $90 | $990 |
They’re Resend’s list prices month to month, and the yearly plan bills 11 months for 12, which Resend doesn’t offer: the full comparison is in The Resend alternative. When you reach the quota, sending pauses and you’re never charged extra. Every plan is in the API plans.
Your first send in three steps
- 1
Create a test key
In Organization → API, create a key that starts with
tw_test_. It validates every request exactly like a live one, but sends nothing and uses no quota. - 2
Send with curl
Store the key in
TELLWING_API_KEYand paste the request below. The addressdelivered@sandbox.tellwing.comsimulates a delivery. - 3
Verify your domain and go live
Add your domain, publish the records we give you to copy and create a
tw_live_key allowed to send. Until the domain is verified, API Free only writes to your team’s verified addresses.
The API answers 202 with the message ID and its delivery_id, the same one your webhooks carry:
What your code has to handle
- Retries without duplicates. Send
Idempotency-Keywith every request: the response is stored for 24 hours and a retry with the same key doesn’t send again. - 402 quota_exceeded. The month’s or the day’s quota is used up. Nothing was sent and the response says what you have left.
- 403 domain_not_verified. On API Free with the domain not verified yet, the recipient isn’t on your team. The response lists the blocked addresses.
- 422 recipient_suppressed. Every
toaddress bounced or complained before. Insisting hurts your reputation, so the API doesn’t try. - 429 with Retry-After. You went over the requests-per-minute limit; the
X-RateLimit-*headers tell you what’s left on every response. - Batches and scheduled sends.
POST /v1/messages/batchsends up to 100 messages in one request, counted as one for the rate limit;scheduled_atschedules one up to 30 days ahead, and you can reschedule or cancel it. Withtagsyou label each message and the label comes back in its webhooks.
Webhooks: find out without asking
Register an endpoint and Tellwing tells it about each message: email.delivered, email.bounced and email.complained. Each notification carries the Tellwing-Signature header with an HMAC-SHA256 you verify with your secret, and if your server doesn’t answer it’s retried after 1 minute, 5 and 30 minutes, and 2 and 6 hours.
API Free includes 1 endpoint, API Pro 5 and API Scale 10. Test keys emit the same events, with "livemode": false, to your test endpoints.
Next step
Frequently asked questions
Is there a free transactional email API?
Yes. API Free comes with every Tellwing account: 3,000 transactional emails a month, up to 100 a day, from your verified domain and with no card. On a new account, the quota grows in steps over the first 30 days.
Do I need my own domain?
To write to any address, yes: the email goes out signed with your domain, which is what Gmail and Outlook look at. To test you don’t: test keys work from the first minute.
Can I send newsletters through the transactional API?
No. The transactional API is for what a person asked for or expects, like a code or a receipt, and the Terms forbid using it for marketing. Newsletters go out as campaigns, with their one-click unsubscribe and their reports.
What happens if I go over the quota?
Sending pauses until the next cycle or until you upgrade, and you’re never charged extra. The API answers 402 quota_exceeded, so your code knows what happened.
Sources
Prices and limits checked on November 24, 2026 on each provider’s official page. Names and brands belong to their owners.
Keep reading
- BlogSend email from Node.js with an API
- BlogTransactional email with an API: what to look for
- BlogTellwing vs Resend: transactional email and an API for developers
- BlogSMTP vs API for sending email: the differences that matter
- TutorialsSend transactional email with the API
- TutorialsVerify your sending domain and set the sender