Skip to content
Tellwing

Email API for developers

Your product needs to send codes, receipts and alerts without running a mail server. This is what an email API does, what it costs and how to make your first send in minutes, without sending anything for real while you test.

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:

PlanEmails a monthMonthlyYearly
API Free3,000 (up to 100 a day)$0—
API Pro50,000$20$220
API Pro100,000$35$385
API Scale100,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. 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. 2

    Send with curl

    Store the key in TELLWING_API_KEY and paste the request below. The address delivered@sandbox.tellwing.com simulates a delivery.

  3. 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.

http
curl https://api.tellwing.com/v1/messages \
-H "Authorization: Bearer $TELLWING_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: welcome-ana-1" \
-d '{
"to": "delivered@sandbox.tellwing.com",
"subject": "Welcome to Acme",
"html": "<p>Your account is ready.</p>"
}'

The API answers 202 with the message ID and its delivery_id, the same one your webhooks carry:

http
{
"id": "0100019a4b7c2e1f-…",
"status": "sent",
"recipients": 1,
"suppressed": [],
"delivery_id": "6f1c2b7e-3a51-4c1e-9d0b-2a7f5c8e9b14"
}

What your code has to handle

  • Retries without duplicates. Send Idempotency-Key with 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 to address 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/batch sends up to 100 messages in one request, counted as one for the rate limit; scheduled_at schedules one up to 30 days ahead, and you can reschedule or cancel it. With tags you 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

If your backend is Node.js, continue with Send email from Node.js with an API. Every endpoint, with examples in curl, JavaScript, Python and PHP, is in the documentation, or create your free account and try it with a test key.

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.