clerk-webhooks

Handle Clerk webhook events with verifyWebhook(req) in Next.js routes.

1|3|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/kunmath/split-it --skill clerk-webhooks-kunmath
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-webhooks
Source: https://github.com/kunmath/split-it/tree/main/.agents/skills/clerk-webhooks
Command: npx skills add https://github.com/kunmath/split-it --skill clerk-webhooks-kunmath

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clerk webhooks enable secure, real-time event handling by providing ready-to-use, verified webhook handlers that integrate with Clerk data flows.

Core Features & Use Cases

  • Complete webhook handlers with verifyWebhook(req) verification
  • Supports events: user.created, user.updated, user.deleted, organizationMembership events, etc.
  • Production-ready templates including proxy public route and sample handlers

Quick Start

Define a Next.js route at app/api/webhooks/route.ts that uses verifyWebhook(req) to validate and process events.

Frequently Asked Questions about clerk-webhooks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle Clerk webhooks in Next.js?

Verify Clerk webhooks by calling verifyWebhook(req) within your Next.js API route to cryptographically validate incoming event payloads. This prevents unauthorized requests and ensures your handlers only process legitimate Clerk events.

What Clerk webhook events are supported for user management?

Supported Clerk webhook events include user.created, user.updated, user.deleted, and organizationMembership events. Handling these real-time events allows you to automatically sync your database and trigger notifications when membership data changes.

Do I need a public route for Clerk webhook verification?

Yes, you need a public proxy route for Clerk webhook verification. Defining a public route in your Next.js application allows Clerk to send unauthenticated event payloads to your endpoint for secure processing via verifyWebhook(req).

How do I sync my database with Clerk user data?

Sync your database with Clerk user data by implementing webhook handlers for user.created and user.updated events. Using verifyWebhook(req) ensures your database receives validated, real-time updates directly from Clerk.

What is the best way to secure Clerk webhooks in Node.js?

The best way to secure Clerk webhooks in Node.js is to use the verifyWebhook(req) function within your Next.js route handlers. This built-in verification validates incoming requests before they reach your business logic.