uSend Docs
Get started

Migrate from Resend

Move an existing Resend integration to uSend.

uSend's API uses the same paths and payloads as Resend's. Moving over means verifying your domain on uSend, then swapping the SDK, the API key and the base URL.

1. Verify your domain

Add your sending domain in the uSend dashboard and publish its records. uSend gives each domain a DKIM selector of its own (such as usk3m9q2xa) and uses a return-path CNAME named send-ses, so the records can live next to your existing ones while you switch. See Verify a domain.

2. Create an API key

Create a key under API Keys. uSend keys start with us_. See API keys.

3. Swap the SDK

Replace the resend package with @usend/node. The method names and payloads are the same:

Shell
npm uninstall resend && npm install @usend/node
Node.js
import { Usend } from '@usend/node';

const usend = new Usend(process.env.USEND_API_KEY);

const { data, error } = await usend.emails.send({
  from: 'Acme <[email protected]>',
  to: ['[email protected]'],
  subject: 'Hello',
  html: '<p>Hello from usend</p>',
});

React Email works the same way: pass a component as react and the uSend SDK renders it to HTML with @react-email/render before sending, in emails.send, batch.send, broadcasts.create / update and templates.create / update. Keep @react-email/render (or @react-email/components) installed:

Node.js
import { WelcomeEmail } from './emails/welcome';

await usend.emails.send({
  from: 'Acme <[email protected]>',
  to: ['[email protected]'],
  subject: 'Welcome',
  react: <WelcomeEmail name="Ann" />,
});

In Python, pip install usend and use from usend import Usend. Note that the Python SDK raises UsendError on failure instead of returning an error object.

Keep the Resend SDK

If you prefer not to change packages, point the Resend SDK at uSend's base URL:

Node.js
import { Resend } from 'resend';

const resend = new Resend(process.env.USEND_API_KEY, { baseUrl: 'https://api.usend.et' });

For any other client, set the base URL to https://api.usend.et or call the REST API directly.

Moving SMTP

If you send through Resend's SMTP relay, change only the host and the password. Everything else keeps working:

SettingResenduSend
Hostsmtp.resend.comsmtp.usend.et
Port465, 587 (also 25, 2465, 2587)465 (TLS) or 587 (STARTTLS)
Usernameresendusend (any value works, so leaving resend is fine)
PasswordResend API keyuSend API key

uSend does not listen on ports 25, 2465 or 2587, and requires encryption. See Send with SMTP.

Differences to check

  • Unsubscribe placeholder: uSend documents {{{UNSUBSCRIBE_URL}}}. {{{RESEND_UNSUBSCRIBE_URL}}} in existing broadcasts and templates keeps working.
  • Webhooks and suppressions have their own endpoints: see Webhooks and Suppressions. Webhooks are signed per Standard Webhooks.
  • Limits: new organizations start on the Free plan (100 emails a day, 3,000 a month, one domain) in sandbox mode, and move to production sending after account review. See Plans and limits.
  • Rate limit: 10 requests per second per organization (shared by its API keys and SMTP, as at Resend). See Rate limits.
  • Endpoints that do not exist in uSend return 404 not_found. Check the API reference for what is supported.