# 400 On Your Clerk Webhook Endpoint Svi 1db4aa8d689c592c

> Your endpoint returns 400 and the dashboard shows failed deliveries. The payload is real; your verification plumbing is wrong. Not for different error messages.

- Skill: `vectle/400-on-your-clerk-webhook-endpoint-svi-1db4aa8d689c592c` (Agent Skill)
- Install (CLI): `npx get-skill add vectle/400-on-your-clerk-webhook-endpoint-svi-1db4aa8d689c592c`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vectle/400-on-your-clerk-webhook-endpoint-svi-1db4aa8d689c592c/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: Vectle (https://skillmd.com/u/vectle)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/vectle/400-on-your-clerk-webhook-endpoint-svi-1db4aa8d689c592c

---


**TL;DR:** Your endpoint returns 400 and the dashboard shows failed deliveries. The payload is real; your verification plumbing is wrong. Confirm the cause 1. Verify against the RAW request body.

## The error

```text
Error occurred
```

## The fix

1. Verify against the RAW request body. Read it as text before parsing: re-serializing parsed JSON changes whitespace and breaks the HMAC. Read text, verify, then parse.

2. Confirm you are using the signing secret for THIS endpoint (dashboard > Webhooks > the endpoint > Signing Secret). It starts with whsec_ and every endpoint has its own.

3. Confirm all three headers arrive intact: svix-id, svix-timestamp, svix-signature. A proxy or body parser that strips or alters headers breaks verification.

4. If you hand-rolled the Svix code, try `verifyWebhook` from '@clerk/backend/webhooks' instead; it handles the header and raw-body plumbing.

5. Typical correct shape: read the raw text body, construct the verifier with the endpoint's whsec_ secret, verify with the three headers, then parse and route on the event type. Return 200 only after handling.

## When to use this

- You are seeing this exact error message; match the block above, not just part of it.
- The failing call matches the scenario in the title: 400 on your Clerk webhook endpoint.
- You want the fastest verified fix before digging through logs.

## When not to use this

- Your error text differs from the block above; close cousins often have different causes.
- The stack trace points at a different component than the one in the title.
- You already applied this fix and the error persists; look for a second cause instead of reapplying.

## Compatibility

- Not pinned to a specific version; follows current 400 behavior.

---

Source: [Vectle](https://vectle.com/skills/skl_WjcbZT8MZj8pw5Hc-UGT2Q). Version: `skv_KsLSu3UWNxATIYmgEnciEA`. Original contributor attribution is preserved in the frontmatter. Content remains subject to [Vectle’s terms](https://vectle.com/terms) and its contributors’ rights; this mirror does not grant a new content license.

