
Resend Webhooks
If you're handling email events from Resend, this gives you working webhook handlers with proper signature verification using Svix under the hood. It covers the essential pattern: raw body parsing (critical for verification), checking those svix-id/timestamp/signature headers, and handling events like email.sent, email.delivered, and email.bounced. The manual verification code is useful if you're not using the SDK or working in another language. One thing to note: it references a separate webhook-handler-patterns skill for idempotency and retry logic, which you'll definitely want since email webhooks can duplicate. Ships with Express, Next.js, and FastAPI examples plus a Hookdeck CLI command for local testing without ngrok.
- skills.sh installs
- 266
- GitHub stars
- 100
- last updated
- Aug 21, 2026
Install
$ npx -y skills add hookdeck/webhook-skills --skill resend-webhooks --agent claude-codeInstalls into .claude/skills of the current project.
Files
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.receivedevents
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);
const app = express();
// CRITICAL: Use express.raw() for webhook endpoint - Resend needs raw body
app.post('/webhooks/resend',
express.raw({ type: 'application/json' }),
async (req, res) => {
try {
// Verify signature using Resend SDK (uses Svix under the hood)
const event = resend.webhooks.verify({
payload: req.body.toString(),
headers: {
id: req.headers['svix-id'], // Note: short key names
timestamp: req.headers['svix-timestamp'],
signature: req.headers['svix-signature'],
},
webhookSecret: process.env.RESEND_WEBHOOK_SECRET // whsec_xxxxx
});
Sponsors
Details
- Repository
- github.com/hookdeck/webhook-skills
- Category
- Debugging
- First seen
- Jun 3, 2026