Skip to content

Guide for receiving, verifying, and handling Resend webhook events with Svix signature checks.

CCM score
54 of 100
skills.sh installs
267
GitHub stars
104
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Express and FastAPI handlers that verify Svix signatures, with a raw-body requirement noted for the endpoint
  • Includes manual Svix verification code for other languages, plus SDK-based verification via resend.webhooks.verify
  • Enforces a 5-minute timestamp tolerance and checks v1, signatures against the whsec_ secret
  • Lists eight email event types, from email.sent through email.received, for handler branching, with a local tunnel via hookdeck-cli

Install

$ npx -y skills add hookdeck/webhook-skills --skill resend-webhooks -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.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);
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
      });

Details

Repository
github.com/hookdeck/webhook-skills
Categories
Backend & APIs, Email & Messaging
First seen
Jun 3, 2026

Questions

How do I verify Resend webhook signatures in Node.js?

Use the Resend SDK's webhooks.verify method with the raw request body, the svix-id, svix-timestamp and svix-signature headers, and your RESEND_WEBHOOK_SECRET. The skill also includes a manual Svix signature check for other languages, with a five minute timestamp tolerance.

Which Resend email events can the resend-webhooks skill handle?

The skill covers email.sent, email.delivered, email.delivery_delayed, email.bounced, email.complained, email.opened, email.clicked and email.received. It shows how to switch on each event type inside a webhook handler.

How do I install the resend-webhooks skill?

Run npx -y skills add hookdeck/webhook-skills --skill resend-webhooks -y in your project. The skill then lets the agent write Express, Next.js or FastAPI handlers that verify Resend webhooks and process their events.

What do I need to use the resend-webhooks skill?

You need a RESEND_API_KEY from the Resend dashboard and a RESEND_WEBHOOK_SECRET starting with whsec_ from the webhook endpoint settings. For local testing, the skill uses npx hookdeck-cli listen, which needs no account.

More from hookdeck/webhook-skills

All 7

Similar to Resend Webhooks

More Backend & APIs