Neon · AsyncAPI Specification
Neon Auth Webhook Events
Version 1.0
Neon Auth webhooks deliver HTTP POST requests when authentication events occur, including OTP delivery, magic link delivery, and user creation. Webhooks can be used to replace built-in email delivery with custom channels (SMS, custom email, WhatsApp), validate signups before they complete, or sync new users to CRMs and analytics systems.
View Spec
View on GitHub
DatabasesServerlessPostgresInfrastructureAuthenticationEdgeAsyncAPIWebhooksEvents
Channels
/webhook
Receive authentication webhook events
Neon Auth sends webhook events to your configured endpoint as HTTP POST requests with JSON payloads. Each event includes a type field identifying the event and relevant data. Your endpoint should respond with a 2xx status code to acknowledge receipt.
Messages
OtpDeliveryEvent
OTP Delivery Event
Sent when an OTP code needs to be delivered to a user for email verification or two-factor authentication.
MagicLinkDeliveryEvent
Magic Link Delivery Event
Sent when a magic link needs to be delivered to a user for passwordless authentication.
UserCreatedEvent
User Created Event
Sent when a new user account is created through Neon Auth.
Servers
https
webhookReceiver
{webhookUrl}
Your webhook receiver endpoint configured in Neon Auth settings. Neon sends HTTP POST requests to this URL when authentication events occur.