| name | resend-webhooks |
| description | Receive and verify Resend webhooks. Use when setting up Resend webhook handlers, debugging signature verification, handling email events like email.sent, email.delivered, email.bounced, or processing inbound emails.
|
| license | MIT |
| metadata | {"author":"hookdeck","version":"0.1.0","repository":"https://github.com/hookdeck/webhook-skills"} |
Resend Webhooks
When to Use This Skill
- Setting up Resend webhook handlers
- Debugging signature verification failures
- Understanding Resend event types and payloads
- Handling email delivery events (sent, delivered, bounced, etc.)
- Processing inbound emails via
email.received events
Essential Code (USE THIS)
Express Webhook Handler (Using Resend SDK)
const express = require('express');
const { Resend } = require('resend');
const resend = new Resend(process.env.RESEND_API_KEY);
app = ();
app.(,
express.({ : }),
(req, res) => {
{
event = resend..({
: req..(),
: {
: req.[],
: req.[],
: req.[],
},
: process..
});
(event.) {
:
.(, event..);
;
:
.(, event..);
;
:
.(, event..);
;
:
.(, event..);
;
:
.(, event.);
}
res.({ : });
} (err) {
.(, err.);
res.().();
}
}
);