AInstein
API Reference

Auth Webhooks

Endpoints for handling authentication and user management events from Clerk.

Clerk Webhooks

This endpoint receives webhooks from Clerk for various events related to users and organizations. It syncs data to the application's database and tracks events in analytics.

Request Example
# The request body is a Clerk event object, and headers must include valid 'svix-id', 'svix-timestamp', and 'svix-signature'.
# This endpoint is typically called by Clerk, not by a user.

Events Handled

  • user.created
  • user.updated
  • user.deleted
  • organization.created
  • organization.updated
  • organization.deleted
  • organizationMembership.created
  • organizationMembership.updated
  • organizationMembership.deleted
  • session.created

Responses

Response Example
User created
Response Example
{
  "message": "Error occured -- no svix headers"
}

On this page