---
title: "Keep the Resend SDK and switch the provider | sendmcp"
url: https://sendmcp.dev/resend-compatible-api/
description: "Keep the Resend SDK and change the base URL and API key. sendmcp answers the same API calls on your Cloudflare. Env vars for Node, Python, Go, PHP and Ruby."
---

[Features](https://sendmcp.dev/features/) · Resend-compatible API

# Can I keep the Resend SDK and switch the provider?

Yes, you can keep the Resend SDK and switch the provider by changing 2 values: the base URL and the API key. sendmcp answers the same API calls on the same paths, so the official SDKs work unchanged. The Node, Go, PHP and Ruby SDKs read `RESEND_BASE_URL`, and Python reads `RESEND_API_URL`. Your mail then sends through your own Cloudflare account.

Updated Nov 23, 2026 · Open source, [runs on your Cloudflare account](https://sendmcp.dev/#pricing)

## How do I set the Resend SDK base URL?

| SDK | How to point it at sendmcp |
| --- | --- |
| Node | `RESEND_BASE_URL`, or the `baseUrl` option |
| Go | `RESEND_BASE_URL` |
| PHP | `RESEND_BASE_URL` |
| Ruby | `RESEND_BASE_URL` |
| Python | `RESEND_API_URL` |

#.env - RESEND_API_KEY=re_your_resend_key + RESEND_BASE_URL=https://mail.acme.com + SENDMCP_KEY=your_sendmcp_key

// code: unchanged import { Resend } from "resend" const resend = new Resend(env.SENDMCP_KEY) await resend.emails.send({ from: "hi@acme.com", to, subject, html })

sendmcp serves `/emails`, not `/v1/emails`, because Resend's paths have no version prefix.

## What happens to my Resend API key?

You stop using it for these projects. The Resend key only works against Resend's API. Create a sendmcp key instead and pass it to the SDK where the Resend key was.

| | Resend key | sendmcp key |
| --- | --- | --- |
| Works against | Resend's API | Your sendmcp Worker |
| Scopes | Full access or sending access, for all domains or one | Same scopes |
| Create it | In the Resend dashboard | In your own deployment, one per project |
| Test mode | Test addresses at `resend.dev` | Test keys that never send, and `@test.sendmcp.dev` addresses |

Keep the Resend key until each project has sent a test through sendmcp, then delete it.

## What works the same, and what does not?

| Area | Same as Resend | Different or missing |
| --- | --- | --- |
| Emails | Send, batch of up to 100, retrieve, list, update, cancel | No share link |
| Email options | html, text, cc, bcc, reply_to, attachments, headers, tags, `scheduled_at`, template with variables | No `topic_id` |
| Request rules | Request and response bodies, error body, cursor pagination, `Idempotency-Key`, `ratelimit-*` headers | sendmcp's own rate limit, plus Cloudflare's daily account quota |
| Domains, API keys, suppressions, templates, logs | Same endpoints | Domain DNS records are written for you, not just shown |
| Webhooks | Same event names and the same `svix-id`, `svix-timestamp`, `svix-signature` headers | Resend's `contact.*` events do not exist |
| Marketing | Not applicable | No contacts, segments, topics, broadcasts or automations |

## How do I move a project?

1. Deploy sendmcp to your Cloudflare account.
2. Ask your agent to add the project's domain; it writes the DNS.
3. Set the base URL variable and the sendmcp key in the project.
4. Send a test, change any `resend.dev` test addresses to `test.sendmcp.dev`, then cancel Resend.

Compatibility notes from the Resend API reference and docs, SDK variable names checked on Nov 23, 2026. See [Resend docs](https://resend.com/docs/llms.txt) and the [Cloudflare Email Service docs](https://developers.cloudflare.com/email-service/).

## Questions about this

### Do I have to change my code?

No. You change the base URL variable and the key. The SDK calls, request bodies and error handling stay the same.

### Will my existing webhook handlers keep working?

Yes. sendmcp uses the same event names and the same Svix signature headers, so a handler that verifies Resend webhooks verifies sendmcp's. Handlers for Resend's `contact.*` events will not receive anything.

### Can I use Resend's marketing features through sendmcp?

No. Cloudflare allows transactional email only, so there are no contacts, segments or broadcasts.

## Related questions

### Is there a free transactional email API for side projects?

What four projects cost on Resend and on Cloudflare, with the catches.

[Is there a free transactional email API for side projects?](https://sendmcp.dev/free-transactional-email-api/)

### How do I send email from many domains with one account?

One Worker, a key per project, no per-domain fee.

[How do I send email from many domains with one account?](https://sendmcp.dev/email-for-multiple-domains/)

### Resend vs sendmcp: what do you pay for more domains?

Unlimited domains on your Cloudflare, Resend SDK unchanged.

[Resend vs sendmcp: what do you pay for more domains?](https://sendmcp.dev/vs/resend/)

## Send from every project for $0.

Open source. One click puts it on your Cloudflare account.

[Deploy to Cloudflare](https://deploy.workers.cloudflare.com/?url=https://github.com/agentfirsthq/sendmcp)
