/projects/{project_id}/branches/{branch_id}/auth/pluginsRetrieve Neon Auth plugin configurationsReturns all plugin configurations for Neon Auth in a single response. This endpoint aggregates organization, email provider, email and password, OAuth providers, and localhost settings.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Responses
Aggregated plugin configurations for Neon Auth
allow_localhostbooleanPermits authentication requests from localhost origins when true. Intended for local development; disable in production environments.
email_and_passwordobjectShow child attributes
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
email_providerobjectShow child attributes
oneOf · 2 options
hoststringrequiredHostname of the email server.
passwordstringrequiredOn GET, returned redacted (empty) for ordinary callers, while callers with project-credential read permission receive the stored password — do not assume this field is empty. Update (PATCH) responses always return it redacted (empty) regardless of permission. Provide a value on update to set or rotate the password.
portintegerrequiredTCP port of the SMTP server. Common values: 25 (SMTP), 465 (SMTPS), 587 (submission).
sender_emailstringrequiredEmail address used as the From address on outgoing auth emails.
sender_namestringrequiredDisplay name shown as the sender in outgoing emails.
usernamestringrequiredUsername for authenticating with the SMTP server.
magic_linkobjectShow child attributes
disable_sign_upbooleanrequiredWhether to disable sign-up via magic link.
enabledbooleanrequiredWhether the magic link plugin is enabled.
expires_ininteger · int32requiredMinutes until the magic link expires.
oauth_providersarray of objectOAuth provider configurations enabled for this auth setup.
Show child attributes
Show array items
client_idstringPublic identifier for the OAuth application, issued by the provider when the application is registered.
client_secretstringOAuth client secret for the provider.
idstringrequiredtypestringrequiredorganizationobjectShow child attributes
creator_rolestringrequiredRole of the organization's creator. `owner`: full control, including deleting the org and transferring ownership. `admin`: manage members and settings only.
enabledbooleanrequiredWhether the organization plugin is enabled.
membership_limitinteger · int32requiredMaximum number of members per organization.
organization_limitinteger · int32requiredMaximum organizations a user can belong to (created or joined). At the limit, the user cannot create or join more.
send_invitation_emailbooleanrequiredWhether to send invitation emails when inviting members to an organization.
phone_numberobjectShow child attributes
enabledbooleanrequiredWhether the phone number plugin is enabled.
otp_expires_inintegerTime in seconds before the OTP expires
{
"allow_localhost": true,
"email_and_password": {
"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
},
"email_provider": {
"sender_email": "string",
"sender_name": "string",
"type": "shared"
},
"magic_link": {
"disable_sign_up": false,
"enabled": false,
"expires_in": 5
},
"oauth_providers": [
{
"client_id": "string",
"client_secret": "",
"id": "github",
"type": "shared"
}
],
"organization": {
"creator_role": "owner",
"enabled": true,
"membership_limit": 100,
"organization_limit": 10,
"send_invitation_email": false
},
"phone_number": {
"enabled": false,
"otp_expires_in": 300
}
}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"
}