Sending

Resend-compatible email API: same payload, unlimited domains

Short answer

A Resend-compatible email API accepts the same POST /emails body as Resend, so the Resend SDK works after you change the base URL and the key. With Mailcandor you set RESEND_BASE_URL to https://api.mailcandor.com/v1. Sending, batch sending, scheduling, rescheduling, cancelling, idempotency keys and the receiving endpoints keep their shape. Attachments by URL, Resend-stored templates and Resend's error body do not carry over.

Last checked 16 November 2026

A Resend-compatible email API accepts Resend’s send request as it is, so you keep the Resend SDK and the code around it. With Mailcandor the switch is one environment variable and one key: set RESEND_BASE_URL=https://api.mailcandor.com/v1 and use a Mailcandor API key. This page lists what carries over, what does not, and the few lines of code worth checking.

Why teams look for a Resend-compatible API

The usual reasons are domain limits, a suspension, or wanting a second provider for failover. According to Resend’s pricing page, the free plan allows 3 domains, Pro 10 and Scale 1,000, with a $20 per month add-on for each extra 100 domains. Mailcandor has no domain limit on any plan, which matters if you send for many customers or brands. If your Resend account was suspended, see Resend account suspended first.

Before and after: Node.js

Before:

import { Resend } from 'resend';

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

const { data, error } = await resend.emails.send({
  from: 'Acme <hello@acme.com>',
  to: ['sam@example.com'],
  subject: 'Your login code',
  html: '<p>Your code is <b>481 203</b></p>',
  tags: [{ name: 'flow', value: 'login' }],
});

After, set two variables in the environment before the app starts:

RESEND_BASE_URL=https://api.mailcandor.com/v1
RESEND_API_KEY=mc_live_your_mailcandor_key

The code does not change. The SDK reads RESEND_BASE_URL when it loads, so set it in your .env file or hosting dashboard rather than in code that runs after the import. If you prefer the key name used in the rest of our docs, pass process.env.MAILCANDOR_KEY to new Resend().

Before and after: curl

curl https://api.mailcandor.com/v1/emails \
  -H "Authorization: Bearer $MAILCANDOR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: login-code-8812" \
  -d '{
    "from": "Acme <hello@acme.com>",
    "to": ["sam@example.com"],
    "subject": "Your login code",
    "html": "<p>Your code is <b>481 203</b></p>",
    "scheduled_at": "in 10 minutes"
  }'

Compared with a call to Resend, only the host and the key differ. The answer is 202 with {"id": "...", "status": "queued"}, or scheduled when you set scheduled_at.

What carries over

Resend feature Mailcandor
POST /emails POST /v1/emails, same field names
from, to, cc, bcc, reply_to, subject, html, text Same. to takes a string or a list; up to 50 recipients per email
headers Same, an object of header names to values
tags Same list of name and value pairs, returned in webhooks
attachments with content (base64), filename, content_type, content_id Same, up to 40 MB in total
scheduled_at ISO 8601 or plain English such as in 2 hours, up to 30 days ahead
POST /emails/batch Up to 100 emails, no attachments and no scheduling, all or none
PATCH /emails/{id} and POST /emails/{id}/cancel Reschedule or cancel while the email is still scheduled
Idempotency-Key header Same header, kept for 24 hours
Receiving endpoints (/emails/receiving) Same shape, including attachments with a signed download_url
Webhook signatures svix-* headers sent alongside Standard Webhooks headers

If your Node code uses react, the Resend SDK renders it to HTML in your process before the request leaves, so Mailcandor receives html. Mailcandor itself does not render React components.

What does not carry over

Resend feature What happens
Attachments with path (a URL) Refused with 422 invalid_attachment. Send base64 content
Templates stored in Resend Not moved. Recreate them as Mailcandor templates
Error body shape Mailcandor returns {"error": {"type", "message", "field"}}
GET /emails/{id} response Mailcandor’s own shape, with an event timeline and plain-English bounce explanations
Domains, API keys, audiences, broadcasts through the SDK Use the Mailcandor dashboard or its own API for these

The error shape is the one to check in code. If your app branches on Resend’s error name (for example validation_error), read type from Mailcandor’s error object instead. A short helper covers it:

function errorType(error) {
  return error?.error?.type ?? error?.name ?? 'unknown';
}

Webhooks

Mailcandor signs every delivery with Standard Webhooks and also sends svix-id, svix-timestamp and svix-signature. Code that verifies Resend webhooks with the Svix library verifies Mailcandor’s too: use your Mailcandor secret with the mcws_ prefix swapped for whsec_. Events use the familiar email.* names, including email.received for inbound mail. Compare the payload fields with your handler before you go live, and see verifying webhook signatures.

Domains and DNS

Add each sending domain in Mailcandor and publish its records: three DKIM CNAMEs, plus SPF and a bounce MX on send.<domain>. Mailcandor’s records use their own names, so they sit alongside your Resend records without conflict. Keep both sets while you test, and remove the Resend ones only when you have stopped sending through Resend.

Cost and limits side by side

Resend Mailcandor
Free plan 3,000 emails a month, 100 a day, 3 domains 3,000 emails a month, 100 a day, unlimited domains
Entry paid plan Pro, $20 a month for 50,000 emails, then $0.90 per 1,000 Pay as you go, $0.50 per 1,000 after the first 3,000
100,000 emails a month Pro 100k at $35 Team at $39 a month, 100,000 included
Domains on paid plans Pro 10, Scale 1,000, plus $20 a month per extra 100 Unlimited on every plan
Inbound email All plans (Free includes 3 inboxes) Every plan

Resend figures are from its pricing page, checked on 16 November 2026. Mailcandor prices exclude tax; see pricing.

A safe way to switch

  1. Add and verify your domain in Mailcandor.
  2. Create a sending-only key, locked to one domain if a service only sends from that domain.
  3. Set RESEND_BASE_URL in a staging environment and send a test.
  4. Update error handling and webhook handlers.
  5. Roll out, and keep Resend configured as a fallback for a while. Because the body is identical, a failover setup is a few lines.

The step-by-step version is on switch from Resend. Access to Mailcandor is by request through the pricing page.

Questions

Do I need to change my code to move from Resend?

Usually not. Set RESEND_BASE_URL to https://api.mailcandor.com/v1 and use a Mailcandor key in place of the Resend key. Check any code that reads error fields or attaches files by URL.

Do attachments with a path (URL) work?

No. Mailcandor refuses attachments with path and asks for the file as base64 in content. Fetch the file in your app and send its bytes.

Do my Resend webhook signature checks still work?

Yes. Mailcandor sends svix-id, svix-timestamp and svix-signature headers alongside the Standard Webhooks ones. Use your Mailcandor signing secret with mcws_ replaced by whsec_ in code written for Resend.

How many domains can I add?

Unlimited on every Mailcandor plan, including the free Starter plan. Each domain needs its own DNS records verified before it can send.

Can I use Resend templates?

Templates stored in Resend do not move. Recreate them as Mailcandor templates and send with template.id, or keep rendering HTML in your app.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.