My Resend key leaked. What do I do?
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
| When | Do | How |
|---|---|---|
| 0–2 min | Delete | Resend dashboard → API Keys → delete the leaked key. |
| 2–4 min | Replace | Create a Sending access key, limited to one domain if you can. Set it server-side as RESEND_API_KEY and redeploy. |
| 4–8 min | Check sends | Review Emails and Logs for messages you didn't send, and watch for bounce or complaint spikes. |
| 8–10 min | Close the hole | Remove 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_orEXPO_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
.envor.gitpaths.
Check your live app
A free, read-only public-surface scan. It cannot diagnose private sessions or every cause described above.
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.