# Transactional Email API for Developers | Sendtern

> Send transactional email through one API, authenticate your sender domain, and see what happens at each step of delivery.

## Send your first email

Create a sending key and call POST /emails. The API returns an ID when your message enters the queue.

```bash
curl https://sendtern.com/emails \
  -H "Authorization: Bearer $SENDTERN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: welcome-001" \
  -d '{"from":"Acme <hello@your-verified-domain.example>","to":["you@example.com"],"subject":"Hello","text":"Your integration is working."}'
```

- **Node.js / TypeScript SDK:** `npm install sendtern` (`import { Sendtern } from 'sendtern'`) — [npm](https://www.npmjs.com/package/sendtern)
- **Resend 1-line drop-in:** `baseUrl: 'https://sendtern.com/resend'`
- **Email Playground (zero-quota capture):** `https://sendtern.com/test/emails`
- **Supabase Custom SMTP:** [Supabase Custom SMTP](https://sendtern.com/docs/supabase-smtp.md)

## Verify your sending domain

Add the DNS ownership and DKIM records from the dashboard. Publish SPF and DMARC for your sending domain.

## Track delivery events

Use the message ID to check whether the receiving mail server accepted, delayed, or rejected your email. Sandbox messages stay in Sendtern.

## Pricing

Sendtern Free includes 300 transactional email recipients per month and 2 verified domains. Hobby costs $3 per month for 10,000 recipients.

Free costs $0 per month. It includes 300 transactional recipients per month, up to 50 per day, 2 verified domains, 3 days of API logs and 5 webhook endpoints.

Payment methods for Sendtern plans include Cards and digital wallets, Alipay, Cryptocurrency. Available options are shown at checkout.

## Documentation

- [Quickstart](https://sendtern.com/docs/quickstart.md)
- [Documentation](https://sendtern.com/docs/index.md)
- [Supabase Custom SMTP](https://sendtern.com/docs/supabase-smtp.md)
- [Agent Skill (SKILL.md)](https://sendtern.com/SKILL.md)
- [API and agent guide](https://sendtern.com/agent.md)
- [OpenAPI 3.1](https://sendtern.com/openapi.json)
- [llms.txt](https://sendtern.com/llms.txt)
- [Pricing](https://sendtern.com/pricing.md)
- [Payment methods](https://sendtern.com/payment-methods.md)

## Blog

- [How to Test Transactional Emails in GitHub Actions Without Sending Them](https://sendtern.com/blog/github-actions-email-testing.md): Capture a verification email in Sendtern Email Playground and have GitHub Actions check its recipient, subject, and link before deployment.
- [How to Send Verification and Password Reset Emails in Next.js](https://sendtern.com/blog/nextjs-auth-emails.md): Send email verification and password reset links from the Next.js App Router with Sendtern. Test both messages in Email Playground before enabling live delivery.
- [Sendtern SDKs for nine languages and frameworks](https://sendtern.com/blog/sendtern-sdks.md): The first Sendtern SDK release covers Node.js and TypeScript, Python, Ruby, PHP, Laravel, Go, Rust, Java, and .NET.
- [What does it cost to send 10,000 emails? Resend, SendGrid, Mailgun and Sendtern](https://sendtern.com/blog/transactional-email-pricing-10000.md): For 10,000 transactional emails a month, Sendtern Hobby costs $3, Mailgun Basic $15, Twilio SendGrid Essentials $19.95 and Resend Pro $20. Here’s what each plan buys you and what changes if you send 12,000 or 50,000.
- [Migrate from Resend to Sendtern](https://sendtern.com/blog/resend-to-sendtern.md): You can keep the Resend Node.js SDK and its emails.send call. To route requests through Sendtern, change the base URL, create a Sendtern key and verify your sending domain.

Support: `support@sendtern.com` · Business proposals: `offers@sendtern.com`
