RealComposer

Resend Safe & Unsafe Practices

Direct Answer

Resend API keys (re_) are server-only. Create keys with sending access restricted to a single verified domain, send from server or edge code, and verify webhook signatures before trusting delivery events.

Credentials & Where They Belong

Server only
Sending access API key (re_)

Can only send email, optionally from one domain.

Server only
Full access API key

Manages domains, keys, and audiences.

Server only
Webhook signing secret

Verifies Svix-signed webhook deliveries.

Safe Practices

  • Restrict keys to sending access on one domain

    Limit blast radius if a key leaks from logs or config.

  • Verify webhook signatures

    Check the svix-signature header before updating bounce or complaint state.

Unsafe Practices

  • Calling Resend from browser code

    The key becomes public and attackers can send mail from your domain.

  • Letting callers set from addresses

    Fix the sender on the server to protect your domain reputation.

The RealComposer Pattern

Store RESEND_API_KEY in the vault and expose a POST pipeline with a fixed sender and template, protected by a client token.

START BUILDING FREE

Frequently Asked Questions

Q:Should I use a full access Resend key in production?

No. Use a sending access key for app traffic and reserve full access for admin tooling.

Related Concepts