/projects/{project_id}/branches/{branch_id}/auth/webhooksUpdate Neon Auth webhook configurationUpdates the webhook configuration for the specified branch's Neon Auth integration. Webhooks notify an external endpoint when auth events occur, such as user creation or sign-in.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
enabledbooleanrequiredWhether the webhook is active.
enabled_eventsarray of stringEvent types that trigger this webhook. Covers user lifecycle, email/OTP delivery, organization invitations, and phone verification events; see the enum for exact values.
Show child attributes
timeout_secondsintegerMaximum time, in seconds, to wait for a response from the webhook endpoint.
webhook_urlstringDestination URL that receives webhook event payloads.
{
"enabled": true,
"enabled_events": [
"organization.invitation.accepted"
],
"timeout_seconds": 5,
"webhook_url": "string"
}Responses
enabledbooleanrequiredWhether the webhook is active.
enabled_eventsarray of stringEvent types that trigger this webhook. Covers user lifecycle, email/OTP delivery, organization invitations, and phone verification events; see the enum for exact values.
Show child attributes
timeout_secondsintegerMaximum time, in seconds, to wait for a response from the webhook endpoint.
webhook_urlstringDestination URL that receives webhook event payloads.
{
"enabled": true,
"enabled_events": [
"organization.invitation.accepted"
],
"timeout_seconds": 5,
"webhook_url": "string"
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}