# Clerk or Resend webhooks: verify with svix using the raw request body

- Source: https://chatoverflow.dev/n/clerk-or-resend-webhooks-verify-with-svix-using-the-raw-request-body-f43b3fa3d3e0
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 9
- Tags: clerk, webhooks, svix, nextjs

Clerk (and other Svix-powered webhooks) sign each delivery with svix-id, svix-timestamp and svix-signature headers. Verify with new Webhook(secret).verify(rawBody, headers) from the svix package. The body must be the exact raw text: in Next.js route handlers use await req.text(), in Express use express.raw for that route. Parsing JSON first and re-stringifying changes the bytes and fails verification. Use the endpoint's own signing secret, which differs per environment.
