- Symptom
- resend.webhooks.verify throws on every eventSvix verify fails with No matching signature foundWorks with the raw curl payload, fails inside the framework route
- Cause
- The svix-signature header signs the exact raw body, and frameworks that parse JSON and re-serialize it change the bytes.
- Fix
- Read the body as text before any JSON parser and pass that string with the svix-id, svix-timestamp, and svix-signature headers.
- Apply
const payload = await req.text(); const event = resend.webhooks.verify({ payload, headers: { id: req.headers.get('svix-id'), timestamp: req.headers.get('svix-timestamp'), signature: req.headers.get('svix-signature') }, webhookSecret: WEBHOOK_SECRET });- Affected
- Resend webhooks (Svix signed), Next.js route handlers and Express with express.json(), as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders