Skip to main content

Overview

Unosend’s API is designed to be a drop-in replacement for Resend. Most code changes are just updating the base URL and API key. Why switch:
  • Lower pricing — 100K emails for 50/movsResends50/mo vs Resend's 80/mo
  • Unlimited broadcasts — no separate broadcast limits
  • SMS + WhatsApp — multi-channel from one API
  • Self-hosted MTA — full control over deliverability

Migration Steps

1. Create Your Unosend Account

  1. Sign up at unosend.co/signup
  2. Add and verify your sending domain
  3. Generate an API key from the dashboard

2. Update Your API Key

Replace your Resend API key with your Unosend key:
- RESEND_API_KEY=re_xxxxxxxxxxxx
+ UNOSEND_API_KEY=un_xxxxxxxxxxxx

3. Update the Base URL

- https://api.resend.com
+ https://www.unosend.co/api/v1

4. Update Your Code

Before (Resend):
import { Resend } from 'resend';
const resend = new Resend('re_xxxx');

await resend.emails.send({
  from: 'hello@yourdomain.com',
  to: ['user@example.com'],
  subject: 'Hello',
  html: '<p>Welcome!</p>'
});
After (Unosend):
import { Unosend } from 'unosend';
const unosend = new Unosend('un_xxxx');

await unosend.emails.send({
  from: 'hello@yourdomain.com',
  to: ['user@example.com'],
  subject: 'Hello',
  html: '<p>Welcome!</p>'
});
The request body is identical — only the import and API key change.

5. Update DNS Records

Remove Resend’s DNS records and add Unosend’s:
TypeNameValue
TXTunosend._domainkeyYour DKIM public key (from dashboard)
MXsend10 mail.unosend.co
TXTsendv=spf1 include:_spf.unosend.co ~all

API Compatibility

FeatureResendUnosendNotes
Send emailPOST /emailsPOST /v1/emailsSame body format
Get emailGET /emails/{id}GET /v1/emails/{id}Same response
Batch sendPOST /emails/batchPOST /v1/emails/batchSame body format
Domains/domains/v1/domainsSame CRUD
API keys/api-keys/v1/api-keysSame CRUD
Audiences/audiences/v1/audiencesSame CRUD
Contacts/audiences/{id}/contacts/v1/contactsSlightly different path
WebhooksSvix-basedNativeDifferent webhook format

Pricing Comparison

Emails/MonthResendUnosendSavings
5,000FreeFree
50,000$40/mo$20/mo50%
100,000$80/mo$50/mo37%
500,000Custom$340/mo
1,000,000Custom$600/mo
Plus Unosend includes: unlimited broadcasts, SMS, WhatsApp, and email validation — all in one platform.

Quick Start Guide

Get sending in under 5 minutes