Home/Migrate from Resend

Migrate from Resend to Nitrosend, field by field

Keep Resend as the provider underneath, or move sending completely. Either way the code change is a field map, an idempotency key on every send and new webhook headers, and the replies your agent reads arrive with their text.

VerifiedKam LowBy Kam Low, Co-founder and CTO·Updated

A Resend to Nitrosend migration moves your app's email from Resend's POST /emails endpoint to Nitrosend's POST /v1/my/messages, your webhook handler from Resend's events to Nitrosend's, and your sending domain's DNS records to the provider that will carry the mail. There are two ways to do it. You can keep Resend underneath, connect your Resend API key to Nitrosend and change nothing in DNS, or you can move sending to Nitrosend completely. Either way the code change is small: four request fields are renamed or reshaped, every send needs an idempotency key, and the webhook signature headers change name. What you gain is one account for receipts, newsletters and flows that an AI assistant like Claude, ChatGPT, Cursor or Codex can run from a chat, with replies delivered to your webhook with their text included.

I run engineering at Nitrosend, so this page is written from the code and the docs, not the brochure. Every Resend fact below was read on Resend's own documentation on November 21, 2026, and every Nitrosend fact comes from the Nitrosend API docs. Where Nitrosend does not do something Resend does, the page says so and gives the workaround. If you are still deciding whether to move at all, the Nitrosend vs Resend comparison scores the two side by side, and the Resend alternatives review ranks the wider field.

Key differences between Resend and Nitrosend

These are the differences that change code or config when you move. The rest of the page takes each one in turn.

  • One recipient per send. Resend's to takes up to 50 addresses. Nitrosend's to is one address, with cc and bcc arrays of up to 10 each. A Resend call to five people becomes five Nitrosend sends.
  • The idempotency key is required. Resend keeps an optional key for 24 hours. Nitrosend refuses a send without one with 400 idempotency_key_required.
  • Plain text is body, not text. HTML stays html. Tags are a flat object instead of an array of name and value pairs.
  • Fields Nitrosend does not take are ignored, not rejected. A ported Resend payload still sends, and the response lists what was dropped in ignored_fields. Read it on your first test send.
  • No attachments, scheduling or batch endpoint on the send call. As of November 21, 2026 the documented request body has none of the three. The workarounds are below.
  • Replies arrive with their text. Resend's email.received webhook carries only metadata, so you call its API again for the body. Nitrosend's email.received carries the reply's text and HTML, plus the idempotency key and tags of the send it answers.
  • Marketing email is on the same plan. Resend sells broadcasts as a separate plan priced by contacts. On Nitrosend, campaigns, flows and app email draw from one monthly allowance.
  • An agent can do the work. Nitrosend's MCP server lets Claude, ChatGPT or Cursor set up the domain, write the emails in your brand and check the first sends, which is most of a migration.

Two ways to move: keep Resend underneath, or switch fully

Path A, keep Resend underneath. On Starter and above, Nitrosend can send through your own Resend account. You paste a Resend API key under Integrations, Nitrosend tests it against Resend's domains endpoint, and from then on your campaigns, flows and transactional email are composed and tracked in Nitrosend and carried by Resend. Your DNS stays as it is, because the records Nitrosend shows for the domain come from Resend's own verification. We added Resend as a sending provider in April 2026, alongside Mailgun, Amazon SES, Postmark and SendGrid, for teams that have years of sending history on one of them and do not want to start a domain over.

George Hartley, our co-founder, has described how bigger customers use it on partner calls: they keep their transactional email on SendGrid or Resend and run newsletters and flows in Nitrosend, with one dashboard showing all of it. That is a reasonable place to stop. You do not have to migrate everything on day one.

Two things to know about Path A. The key has to be able to read domains, so a Resend send-only key can fail the connection test, and the alternative is a full-access key. And rotating that key later resets the integration's verified domains to pending until they verify again.

Path B, switch fully. Nitrosend sends on its own infrastructure, which runs on Amazon SES. You verify your domain with Nitrosend's records, move your sends to the Nitrosend API, and close the Resend account when the last email has gone through it. Nitrosend counts trusted migration evidence toward sender standing, which sets your rolling 24-hour allowance, so an established domain with a clean list does not have to start at the bottom (pricing and allowances).

The API changes below are the same on both paths. Only the DNS section differs.

Resend to Nitrosend field map

Resend's send call and Nitrosend's take the same shape of JSON. Most fields keep their names. The table lists every field in Resend's send-email reference against the Nitrosend transactional messages API, with what you change.

Resend send fields, mapped to Nitrosend

Checked November 21, 2026
Every Resend send-email field, what Nitrosend's messages endpoint takes in its place, and the change to make in code.
FieldResendNitrosendWhat to change
EndpointPOST https://api.resend.com/emailsPOST https://api.nitrosend.com/v1/my/messagesAdd channel: "email" to every body.
AuthAuthorization: Bearer re_...Authorization: Bearer nskey_live_...New key from Settings, API Keys.
fromRequired. Name <address> works.Optional. Same format. Must be a verified sender for the brand.Leave it out to use the brand's default sender.
toString or array, up to 50.One address as a string.Loop over recipients, one key each, or use cc.
cc, bccString or array.Array, up to 10 each.Each copy counts as one email.
subjectRequired.Required for email.No change.
htmlHTML body.HTML body.No change.
textPlain text. Generated from HTML if left out.bodyRename. text lands in ignored_fields.
reactReact component, Node SDK only.Not taken.Render to HTML first, see the code below.
reply_toString or array.reply_toPoint it at an inbox address to get replies as events.
headersObject.headers, up to 20.From, List-Unsubscribe, Message-ID and other envelope headers are reserved.
tagsArray of { name, value }.Object of key: value.Reshape. Some keys are reserved.
template{ id, variables }.template_idResend templates do not carry over. Send rendered HTML, or rebuild the template in Nitrosend.
scheduled_atNatural language or ISO 8601.Not in the documented body.Delay in your own queue, or fire an event and let a flow wait.
attachmentsUp to 40 MB per email.Not in the documented body.Link to a hosted file, or keep those sends on Resend.
topic_idSubscription topic.Not in the documented body.Unsubscribes are suppressions that block marketing mail.
Idempotency keyOptional header, kept 24 hours.Required, header or idempotency_key field.Same key and payload returns the original. A new payload under it is a 409.
BatchPOST /emails/batch, up to 100.No batch endpoint.One call per message. For a list, send a campaign.
Response{ id }The message, with id and ignored_fields.Store id. Webhooks call it message_id.
Sources: Resend send-email reference and the Nitrosend REST API. Nitrosend fields read from the documented request body on November 21, 2026.

The row that catches people is text. A Resend payload with text and no body still sends on Nitrosend, but only the HTML part goes out, and text comes back in ignored_fields. When an API key keeps sending ignored fields, the account owner gets an email about it, at most once a week. Check the response of your first test send rather than wait for that email.

The send call, before and after

A React Email welcome message on Resend's Node SDK. The react field is Resend-only, so it does the rendering for you.

import { Resend } from 'resend';
import { WelcomeEmail } from './emails/welcome';

const resend = new Resend(process.env.RESEND_API_KEY);

await resend.emails.send({
  from: process.env.EMAIL_FROM,
  to: [user.email],
  subject: 'Welcome to Acme',
  react: <WelcomeEmail name={user.name} />,
  tags: [{ name: 'kind', value: 'welcome' }],
});

The same send on Nitrosend's Node SDK, @nitrosend/sdk. You render the component yourself with @react-email/render, which React Email apps already have installed, and pass the HTML and a plain-text version. The second argument to messages.send is the idempotency key, and the SDK requires it. If the email has a single obvious sender you can leave from out and the brand's default sender is used.

import { Nitrosend } from '@nitrosend/sdk';
import { render } from '@react-email/render';
import { WelcomeEmail } from './emails/welcome';

const ns = new Nitrosend(process.env.NITROSEND_API_KEY);

const email = <WelcomeEmail name={user.name} />;

const msg = await ns.messages.send({
  channel: 'email',
  to: user.email,
  subject: 'Welcome to Acme',
  html: await render(email),
  body: await render(email, { plainText: true }),
  tags: { kind: 'welcome' },
}, `welcome-${user.id}`);

console.log(msg.id);

From Python, or any language without an SDK, it is one HTTP call. The key goes in the Idempotency-Key header, and printing ignored_fields on the first run shows any Resend field you forgot to rename.

import os, requests

resp = requests.post(
    "https://api.nitrosend.com/v1/my/messages",
    headers={
        "Authorization": f"Bearer {os.environ['NITROSEND_API_KEY']}",
        "Idempotency-Key": f"receipt-{order.id}",
    },
    json={
        "channel": "email",
        "to": order.customer_email,
        "subject": f"Your receipt for order {order.id}",
        "html": receipt_html,
        "body": receipt_text,
        "tags": {"kind": "receipt", "order": str(order.id)},
    },
)
resp.raise_for_status()
print(resp.json().get("ignored_fields"))

For more languages, the Node email API guide and the transactional email API page cover the same call with the read path you need to know whether it arrived.

Every send needs an idempotency key

On Resend the key is a nice-to-have. On Nitrosend it is required, and that is deliberate. An idempotency key is a string that names one message, so a retry after a timeout returns the original message instead of sending a second copy. Give each message its own stable key built from what caused it, such as receipt-8841 or reset-42-1732190400, and reuse it only to retry that message. The same key with a different payload returns 409 idempotency_conflict, which is the API telling you two different emails were about to share a name.

We learned how much this matters by getting it wrong once. When we first made the key mandatory, about a dozen REST integrations that had never sent one started getting 400s the same day. We reopened keyless sends with a published cutoff of September 1, 2026, and today a send without a key is refused. If your Resend code never set a key, this is the one change you cannot skip.

The key also settles sends whose answer was lost. GET /v1/my/messages/lookup?idempotency_key=receipt-8841 returns that message's status, and Nitrosend never resends on its own when a provider's outcome is uncertain, because the provider might already have accepted it. A retry under the original key is always safe.

Webhook events and signatures

Most handlers port with three edits: the signature headers, the id field, and two event names you will no longer receive. The table maps Resend's event types to Nitrosend's.

Resend webhook events, mapped to Nitrosend

Checked November 21, 2026
Each Resend webhook event type, whether Nitrosend sends the same event, and what differs.
EventResendNitrosendNote
email.sentYesYesThe provider accepted it.
email.deliveredYesYesThe recipient's server accepted it.
email.bouncedYesYesNitrosend adds bounce.type, hard or soft.
email.complainedYesYesMarked as spam.
email.openedYesYesNitrosend sends the first open, and leaves out security scanners and bots.
email.clickedYesYesNitrosend sends the first human click on each link. Transactional links are never rewritten.
email.failedYesYesNitrosend sends it once the failure is final.
email.receivedMetadata onlyText and HTML includedNitrosend also names the send it answers.
email.delivery_delayedYesNoNitrosend keeps retrying and reports the final outcome.
email.scheduled, email.suppressedYesNoRead suppressions from GET /v1/my/suppressions.
contact.*, domain.*Created, updated, deleteddomain.verified, domain.verification_lost, domain.dns_degradedNitrosend reports domain health, not CRUD.
Campaign and sending eventsNocampaign.completed, sending.paused, sending.limit_reached and moreAdd them through the API.
Sources: Resend event types and Nitrosend webhooks. Nitrosend email events cover transactional sends, not campaigns or flows.

Signatures. Resend signs through Svix and its verification guide reads svix-id, svix-timestamp and svix-signature. Nitrosend signs in the Standard Webhooks format, with webhook-id, webhook-timestamp and webhook-signature, an HMAC-SHA256 over id.timestamp.body with a whsec_ secret. The scheme is the same family, so the shape of your check does not change. Swap the header names and the secret, verify against the raw body, and reject anything more than five minutes old.

The id trap. On Resend, data.email_id is the send's id and data.message_id is the RFC Message-ID header. On Nitrosend, data.message_id is the id that POST /v1/my/messages returned, and the RFC header is data.rfc_message_id. A handler that copies Resend's message_id into a lookup will match nothing.

import express from 'express';
import { verifyWebhook, WebhookVerificationError } from '@nitrosend/sdk';

const app = express();

// Before any JSON body parser, so the raw body reaches the check.
app.post('/webhooks/email', express.raw({ type: 'application/json' }), async (req, res) => {
  try {
    const event = await verifyWebhook(
      req.body.toString('utf8'),
      req.headers,
      process.env.NITROSEND_WEBHOOK_SECRET,
    );
    if (await alreadyHandled(req.headers['webhook-id'])) return res.sendStatus(200);

    // Resend: event.data.email_id. Nitrosend: event.data.message_id.
    await recordOutcome(event.data.message_id, event.type, event.data.idempotency_key);
    res.sendStatus(200);
  } catch (error) {
    if (error instanceof WebhookVerificationError) return res.sendStatus(400);
    throw error;
  }
});

Retries. Return any 2xx within 10 seconds. A failed event is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 8 hours and 24 hours, and webhook-id stays the same across retries, so store the ids you have handled. If your endpoint was down, GET /v1/my/webhooks/events returns received, delivered, bounced and complained events by cursor. The email webhooks guide goes further into the handler.

Replies and inbound email for AI agents

This is the part of the move that changes most for an agent. When someone replies to a Resend email, the email.received webhook carries metadata only, and the body, headers and attachments come from a second call to Resend's received-emails API. When someone replies to a Nitrosend email, the email.received event carries the reply's text and html (each up to 64 KiB, with truncated set if cut), the list of attachments with their scan status, the thread_id, and the idempotency_key and tags of the send it answers. An agent that sent receipt-77 knows the reply is about order 77 without looking anything up.

Replies reach Nitrosend when they go to one of your brand's inboxes, so set reply_to to an inbox address on the sends you want answered. Inboxes are part of the Agent Inbox: 1 is included on Free and 3 on paid plans. Nitrosend screens incoming mail before it reaches the agent, and quarantined mail is never sent to your webhook.

One field has no Resend equivalent and matters for agents in particular. unless_inbound_since takes a timestamp and stops the send if the recipient has written to you since then, checked again at the moment it goes out. A follow-up an agent queued yesterday does not go to a customer who replied this morning. The autonomous email agent guide puts these pieces together in one tested webhook handler.

Sending domain and DNS

On Path A there is nothing to move. Add the domain under Domains in Nitrosend and the records shown are the ones Resend already verified. One snag we fixed this year: in September a customer's agent re-ran domain verification seven times in half an hour on a domain Resend already showed as verified. The only missing record was Resend's optional receiving MX on the root domain, which they could not add because their root MX points at Google Workspace. Nitrosend now ignores receiving-only records when it decides a Resend domain is ready, and no longer turns on Resend receiving when it registers the domain. You do not need that MX record to send.

On Path B you add Nitrosend's records alongside Resend's and keep both until the last Resend send. Nitrosend's domain setup lists a verification record, SPF, DKIM and a return-path or tracking record for a sending subdomain, send.yourdomain.com by default, and your From address can stay on the root domain. Resend's return path also defaults to the send subdomain. If Resend's records already sit on send.yourdomain.com, choose a different subdomain for Nitrosend during setup, such as mail.yourdomain.com, so two SPF records never share one name. DKIM uses a different selector for each provider, so those coexist. Leave your existing MX records for your team's inbox alone.

Keep sending from the domain your recipients already know. Resend's own guidance on moving providers says the same: an address with history keeps its reputation only if you keep using it. Move volume across gradually rather than in one switch, and the domain warm-up guide has a schedule. The email authentication guide explains what each record does.

Contacts, broadcasts and unsubscribes

If you only send app email on Resend, skip this section. If you use Resend's contacts and broadcasts, export the contacts through Resend's contacts API or dashboard and import them into Nitrosend, which stores unlimited contacts on every plan. Carry the unsubscribes across before anything else: add each unsubscribed address as a suppression with POST /v1/my/suppressions and reason unsubscribe, which stops campaigns and flows to it but not receipts or password resets. Then recreate the broadcast as a Nitrosend campaign. You can describe it to your agent and Nitrosend applies your brand's logo, colors, fonts and voice. A campaign stays a draft until it is approved, so nothing reaches a list by accident. The difference between transactional and marketing email decides which of your Resend sends become campaigns and which stay API calls.

Let your AI assistant run the migration

Most of a migration is reading code, renaming fields and checking test sends, which is work an AI coding assistant does well when it can reach the email platform. Nitrosend's MCP server gives Claude, ChatGPT, Cursor, Codex or Gemini CLI the tools to set up the domain, write and send test emails, and read back what happened. In Claude Code it is one line:

claude mcp add --transport http nitrosend https://api.nitrosend.com/mcp

Then give it the job in plain words. A prompt that works:

Connect to Nitrosend. We are moving our app email from Resend.
1. Set up our sending domain and show me the DNS records to add.
2. Find every Resend send in this repo and port it to POST /v1/my/messages
   with a stable idempotency key per message. Rename text to body and
   reshape tags into an object.
3. Port our Resend webhook handler to Nitrosend's webhook-* headers and
   data.message_id.
4. Send one test of each email to me and show me ignored_fields for each.
Do not send to customers.

The email MCP explainer covers how sending servers like this one differ from inbox servers.

Cutover checklist

  • Pick the path. Path A if you want Resend's history and DNS untouched, Path B if you want one provider. Path A needs Starter or above.
  • Verify the domain in Nitrosend. Wait for the domain.verified event or the Verified badge.
  • Port the send calls. Rename text to body, reshape tags, split multi-recipient to, add a key per message.
  • Handle the three gaps. Attachments, scheduled_at and batch sends each need the workaround in the field map.
  • Port the webhook handler. New headers, new secret, data.message_id in place of data.email_id.
  • Send one test of every email. Check ignored_fields is empty and the render looks right in Gmail and Outlook.
  • Move traffic in steps. Start with low-volume mail, then receipts and resets, then the rest, watching bounces and complaints.
  • Move contacts and unsubscribes. Suppressions first, then the contacts, then the campaigns.
  • Retire Resend. On Path B, remove Resend's DNS records and revoke its keys once its activity log has been quiet for a week.

Resend to Nitrosend migration FAQ

Create a Nitrosend account, verify your sending domain, and change your send calls from Resend's POST /emails to Nitrosend's POST /v1/my/messages. Most fields keep their names: rename text to body, reshape tags into an object, send to one address per call, and add an idempotency key to every send. Then port your webhook handler to Nitrosend's webhook-id, webhook-timestamp and webhook-signature headers. On Starter and above you can also connect your Resend API key and keep Resend as the provider that carries the mail.

Yes. On Starter and above, connect your Resend API key under Integrations and Nitrosend sends your campaigns, flows and transactional email through your own Resend account, with the DNS records Resend already verified. You can also run both side by side and move one kind of email at a time.

Not on the send call. As of November 21, 2026, Nitrosend's documented request body for POST /v1/my/messages has no attachments, scheduled_at or batch field. Link to a hosted file instead of attaching it, hold delayed sends in your own queue or fire an event and let a flow wait, and send one call per message. Fields Nitrosend does not take are ignored and listed in ignored_fields, not rejected.

It is the same family. Resend signs through Svix with svix-id, svix-timestamp and svix-signature headers. Nitrosend uses the Standard Webhooks format with webhook-id, webhook-timestamp and webhook-signature, an HMAC-SHA256 of id.timestamp.body with a whsec_ secret. Change the header names and the secret, and verify against the raw request body.

Yes. Nitrosend's email.received event includes the reply's text and HTML, up to 64 KiB each, the list of attachments with their scan status, the thread id, and the idempotency key and tags of the send it answers. Resend's email.received webhook carries metadata only, and the body comes from a second API call.

Both have an API and an MCP server. Nitrosend was built for an agent to run email end to end: an assistant like Claude or ChatGPT can sign up, set up the domain, write emails in your brand, send campaigns and transactional email from one account, and read replies with their text and the send they answer. Resend is a strong choice for developers sending code-only transactional email who need SMTP or attachments.

Go deeper

Move your email from Resend to Nitrosend

Simple pricing. Unlimited contacts.

Every plan includes full stack emailing: Flows, Newsletter Campaigns and Transactional Email, plus our NitroWheel LLM and all agent integrations (Claude, ChatGPT, Codex, Cursor and others). Pay for what you send, not who you store.

Choose your billing interval

Every paid plan includes 3 agent inboxes and no Nitrosend footer.

Free

For getting started.

$0USD / month

No card needed.

5,000 emails to start

Start free
  • Then 500 emails every month
  • 3 brands · 2 seats
  • 1 custom sending domain
  • Starter emails never expire

Starter

For your first email program.

$16USD / month

$192 billed yearly.

20,000 emails / month

Choose Starter
  • 5 brands · 3 seats
  • 5 custom sending domains
  • 500 email verifications/month
  • $1.50 / 1,000 extra emails

Pro

For a growing audience.

$40USD / month

$480 billed yearly.

60,000 emails / month

Choose Pro
  • 10 brands · 5 seats
  • 10 custom sending domains
  • 1,000 email verifications/month
  • $1.20 / 1,000 extra emails

Growth

For teams and agencies.

$120USD / month

$1,440 billed yearly.

200,000 emails / month

Choose Growth
  • Unlimited brands · 10 seats
  • 25 custom sending domains
  • 2,500 email verifications/month
  • $0.90 / 1,000 extra emails

Scale

For high-volume sending.

$240USD / month

$2,880 billed yearly.

500,000 emails / month

Choose Scale
  • Unlimited brands · 20 seats
  • 100 custom sending domains
  • 5,000 email verifications/month
  • $0.70 / 1,000 extra emails
Enterprise

Hey, big sender.

Sending 500,000+ emails a month? Get a custom plan designed for you, with volume email pricing and capacity that fits your business.

Daily allowances depend on your plan and sender standing. Strong list, domain and delivery evidence can raise standing, including on day one. Trusted receives the full plan allowance; available email credits, safety checks and delivery pacing still apply.

Free forever. No credit card required. See full comparison →