Resend starter module
Delivery events
Verifies Resend webhooks and records delivered, bounced, and complained-about messages once.
- Files
- 8
- Lines
- 405
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
src/webhooks/handlers/email-bounced.ts
Records Resend bounces with safe permanent and temporary failure handling.
TypeScript
50 lines
src/webhooks/handlers/email-complained.ts
Records Resend spam complaints and suppresses the recipient from future sends.
TypeScript
34 lines
src/webhooks/handlers/email-delivered.ts
Records a Resend delivery event against the matching outbound message.
TypeScript
22 lines
src/webhooks/handlers/email-delivery-delayed.ts
Records delayed Resend deliveries as temporary failures without suppressing recipients.
TypeScript
23 lines
src/webhooks/handlers/email-failed.ts
Records Resend send failures without suppressing recipients for sender-side problems.
TypeScript
26 lines
src/webhooks/handlers/email-suppressed.ts
Mirrors Resend suppression events into local delivery and suppression records.
TypeScript
47 lines
src/webhooks/route.ts
Verifies, claims, and dispatches every Resend delivery webhook event.
TypeScript
135 lines
src/webhooks/verify-signature.ts
Verifies Resend webhook signatures and rejects stale Svix timestamps.
TypeScript
68 lines
Questions about delivery events
Does it include Resend delivery webhooks?
Yes. It verifies delivery events, connect them to the original message, and prevent repeat webhook deliveries from changing state twice.