/projects/{project_id}/branches/{branch_id}/auth/email_and_passwordRetrieve email and password configurationRetrieves the email and password authentication configuration for the specified branch's Neon Auth integration, including whether it is enabled and the email verification method.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Responses
auto_sign_in_after_verificationbooleanrequiredWhether users are automatically signed in after verifying their email
disable_sign_upbooleanrequiredWhether to disable new user sign ups
email_verification_methodstringrequiredThe email verification method to use. - `link`: Sends a verification link via email - `otp`: Sends a one-time password (OTP) via email
enabledbooleanrequiredWhether email and password authentication is enabled
require_email_verificationbooleanrequiredWhether email verification is required before users can sign in
send_verification_email_on_sign_inbooleanrequiredWhether to send a verification email when users sign in
send_verification_email_on_sign_upbooleanrequiredWhether to send a verification email when users sign up
{
"auto_sign_in_after_verification": true,
"disable_sign_up": true,
"email_verification_method": "link",
"enabled": true,
"require_email_verification": true,
"send_verification_email_on_sign_in": true,
"send_verification_email_on_sign_up": true
}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"
}