BlogClerk Webhooks

How to Test Clerk Webhooks

Clerk webhooks send user, session, and organization lifecycle events so you can sync identity data to your own systems.

Clerk Official Webhook Docs

1. Clerk Webhook Events

Clerk can send the following webhook events to your endpoint:

user.created
user.updated
session.created
session.ended
organization.created
organizationMembership.created

2. Set Up a Test Endpoint with HookRay

Follow these steps to start receiving Clerk webhooks for testing:

  1. Go to HookRay and click "Start Testing — Free" to get your unique webhook URL.
  2. Copy the URL (e.g., https://h.hookray.com/abc123).
  3. In your Clerk dashboard, navigate to the webhook settings and paste the HookRay URL as your endpoint.
  4. Select the events you want to receive (see list above).
  5. Trigger a test event — HookRay will show the incoming webhook in real-time.

3. Sample Clerk Webhook Payload

Here's an example of what a Clerk webhook payload looks like:

payload.json
{
  "type": "user.created",
  "data": {
    "id": "user_2mK3vP2a91",
    "first_name": "Ava",
    "last_name": "Johnson",
    "email_addresses": [
      {
        "email_address": "ava@example.com"
      }
    ]
  },
  "object": "event",
  "timestamp": 1763582500000
}

4. Common Issues & Troubleshooting

Webhook not arriving?

Check that your endpoint URL is correct and publicly accessible. Clerk cannot reach localhost URLs — use HookRay's cloud URL instead.

Getting 400 or 500 errors?

HookRay accepts any payload and returns 200 OK by default, so the issue is likely on Clerk's side. Check your webhook configuration and event selection.

Need to verify webhook signatures?

Clerk signs webhook requests for security. Use HookRay to capture the raw headers and body, then implement signature verification in your application code.

5. Next Steps

  • Use HookRay's webhook replay feature to re-send captured webhooks while building your handler
  • Enable smart parsing (Pro plan) to see Clerk-specific fields highlighted automatically
  • Check the Clerk webhook documentation for the complete event reference

Ready to test Clerk webhooks?

Get a free webhook URL in 5 seconds. No signup required.

Start Testing Clerk Webhooks — Free