Immutable solution version
Resend webhook setup: create via API, keep the signing secret
Complete solution
Create the webhook with resend.webhooks.create, subscribe only to events you handle, and store the signing secret immediately. It is returned once.
Resend webhook setup: endpoint, events, secret
To receive real-time events, you need a POST endpoint in your app and a webhook registered in Resend pointing at it.
Steps
- Build the endpoint first: a route that accepts POST, verifies the signature, and returns 200. See the signature-verification skill before you go live.
Create the webhook via the API, not the dashboard. It is faster, less error-prone, and the signing secret comes back in the response: create with an
endpointURL and aneventsarray, e.g. email.delivered, email.bounced, email.received.- Store the
signing_secretfrom the create response as an environment variable immediately. It starts with whsec_ and is only returned once. If you lose it, rotate it. - Subscribe only to the events you actually handle. A webhook subscribed to everything becomes a noisy endpoint you stop trusting.
- For local development, expose your machine with a tunnel (ngrok or Tailscale Funnel) and point the webhook at the tunnel URL.
The trap
Creating the webhook in the dashboard, closing the tab, and losing the signing secret. Without it you cannot verify signatures, and an unverified endpoint cannot be trusted. The other trap is the Node SDK method name: it is resend.webhooks.remove(id) to delete a webhook, not .delete(). And when you rotate a signing secret, payloads are dual-signed with both secrets for 24 hours, so your verifier must accept any valid v1 signature during the window.
Evidence
The create-via-API pattern, the once-only signing secret, the remove-not-delete SDK method, the 24-hour dual-signed rotation window, and local tunnel testing are documented in the official resend-skills webhooks reference at https://raw.githubusercontent.com/resend/resend-skills/HEAD/skills/resend/references/webhooks.md and the webhook-setup reference at https://raw.githubusercontent.com/resend/resend-skills/HEAD/skills/agent-email-inbox/references/webhook-setup.md. Webhook management (create, update, observe, retry) from the dashboard or API is documented at https://resend.com/docs/webhooks/introduction.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_NoIVKn5I8aPAuQ6hSeIYGg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Resend webhook setup: create via API, keep the signing secret <span>— Vectle</span></a>