Skip to content
You're viewing documentation for v0.6.4. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Resend

Send through the Resend API with attachments, tags, and native idempotency keys.

The Resend adapter calls the Resend Email API over fetch — no extra dependency. It is the default first adapter in these docs: short setup, broad field support, and it is the only adapter that forwards idempotency keys to the provider natively.

Resend logo
ResendLive check available@opencoredev/email-sdk/resend
Provider docs

Configure

Grab an API key from the Resend dashboard and verify the domain you plan to send from.

PropType
apiKeystring

Resend API key.

Typestring
baseUrl?string

Override the API origin, e.g. for a proxy.

Typestring
Default"https://api.resend.com"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch
headers?Record<string, string>

Extra HTTP headers sent with every request.

TypeRecord<string, string>

Send

Resend maps every common transactional field: cc, bcc, replyTo, headers, attachments, and tags.

The idempotencyKey is sent as Resend’s Idempotency-Key header, so retried requests cannot double-send.

Verify from the CLI

Drop --dry-run to perform one real send from the environment that will send production email — that is the only check that proves the account, sender domain, and recipient policy are ready.

Last updated on