Skip to content

My Resend key leaked. What do I do?

Short answer

Delete the key in Resend's API Keys page, create a new key with Sending access (restricted to one domain if possible) on your server only, then review sent emails and domain reputation. A leaked Resend key lets anyone send email from your verified domains, which is ideal for phishing in your name.

Last updated 2026-11-25 · Reviewed by ProofForge

Is it this key?

Format: re_

Blast radius: Full-access keys can send from every verified domain and manage domains and keys. Sending-access keys can still send as you.

The first 10 minutes

WhenDoHow
0–2 minDeleteResend dashboard → API Keys → delete the leaked key.
2–4 minReplaceCreate a Sending access key, limited to one domain if you can. Set it server-side as RESEND_API_KEY and redeploy.
4–8 minCheck sendsReview Emails and Logs for messages you didn't send, and watch for bounce or complaint spikes.
8–10 minClose the holeRemove the key from frontend code and git history.

Stop the next leak

  • Keep the key in a server-side env var. Never use a VITE_, NEXT_PUBLIC_ or EXPO_PUBLIC_ variable or hard-code it in frontend code.
  • Call the provider from your backend or an edge function, and add .env* to .gitignore.
  • Re-scan the live site after every deploy. Keys also leak through JS bundles, source maps and exposed .env or .git paths.

Check your live app

A free, read-only public-surface scan. It cannot diagnose private sessions or every cause described above.

Read-only. No writes or row contents.

FAQ

Can I send email from the browser with Resend?

Not with an API key in client code. Send from a server route.

What did an attacker get?

The ability to send mail as your domain. With a full-access key, also domain and key management.

Will my domain reputation recover?

Usually, once abuse stops. Monitor bounces and complaints.

Sources

Related

Read as Markdown · Scan methodology