WebhookCatGuidesOpen your inbox

Test Resend webhooks

Get a public URL for Resend's email events, see each send, delivery, bounce and open as it arrives, check its Svix signature with your signing secret, and forward it to your local server. Free, no signup.

Get a webhook URL

Add the URL in Resend

  1. Open webhookcat.com, copy your URL and add /webhooks/resend to the end. Sub-paths are kept when requests are forwarded, so this one reaches the route in the code below.
  2. In the Resend dashboard, open Webhooks and select Add Webhook.
  3. Paste your WebhookCat URL as the Endpoint URL and pick events such as email.sent and email.delivered.
  4. Send an email to delivered@resend.dev or bounced@resend.dev to trigger events without a real recipient. Test sends count against your quota.

What Resend sends

svix-id
The message ID. It stays the same on retries, so use it to skip duplicates.
svix-timestamp
When the message was signed, in Unix seconds.
svix-signature
One or more v1, signatures separated by spaces, each a base64 HMAC-SHA256 of the ID, the timestamp and the body joined with dots.

Check the signature

Open a request in WebhookCat and paste the secret into the Signature box under it. You'll see right away whether it matches. The check runs in your browser, and the secret is never sent or saved.

Resend signs webhooks with Svix, so the Signature box is labeled Svix. Open the webhook in the dashboard and copy its Signing Secret, which starts with whsec_.

The same check in your own Node.js server:

import express from "express";
import { Resend } from "resend";

const resend = new Resend(process.env.RESEND_API_KEY);
const app = express();
// Keep the raw body: re-serialized JSON no longer matches the signature.
const raw = express.raw({ type: "application/json" });

app.post("/webhooks/resend", raw, (req, res) => {
  let event;
  try {
    event = resend.webhooks.verify({
      payload: req.body.toString(),
      headers: {
        id: req.get("svix-id"),
        timestamp: req.get("svix-timestamp"),
        signature: req.get("svix-signature"),
      },
      webhookSecret: process.env.RESEND_WEBHOOK_SECRET,
    });
  } catch {
    return res.status(400).send("Invalid webhook");
  }
  console.log(event.type, event.data.email_id);
  res.sendStatus(200);
});

Forward to your local server

In the inbox you pasted into Resend, open Share and run the command shown there. It forwards each request to localhost:3000/webhooks/resend with the same headers and body, so the signature check in your code passes too. Needs Node.js 22 or later.

$ npx webhookcat listen 3000 --inbox "https://webhookcat.com/#<id>/<key>"

Starting from the terminal instead? npx webhookcat listen 3000 creates a new URL and prints it. Paste that URL plus /webhooks/resend into Resend. More in the docs.

Good to know

  • Failed deliveries are retried right away, then after 5 seconds, 5 minutes, 30 minutes, and 2, 5, 10 and 10 hours. An endpoint that keeps failing is disabled, and Resend emails your team.
  • For 24 hours after you rotate the signing secret, each payload carries two signatures, one per secret. A match on either is enough, in WebhookCat too.
  • Events can arrive more than once and out of order. Use Replay on a message in the dashboard to send it again.