## TL;DR

Keep verification as the route's only gate: verifyWebhook on every request, 400 on failure. Fix the middleware exclusion, not the handler.

## Steps

1. - Test the route with no cookies and no auth headers. If it 401s, it is guarded.
- The Svix signature check replaces session auth on this route. Do not stack both.
- Document the exclusion in your middleware config with a comment so a future refactor does not re-guard the path.

## When to use

You are seeing this: Webhook deliveries come from Clerk's servers, not from a signed-in user. Use this skill when you run into "Clerk webhook route must be public: the middleware 401 trap".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
