Create Neon Auth integration

Deprecated. Use /projects/{project_id}/branches/{branch_id}/auth instead. Removal scheduled for March 1, 2026.
Use this endpoint if the frontend integration flow can't be used.

Body Params
string
enum
required

Authentication provider integrated with this Neon Auth configuration. better_auth integrates with Better Auth (the current, recommended provider). stack integrates with Stack Auth (deprecated). mock is a simulated provider for local development and testing only.

Allowed:
string
required
^[a-z0-9-]{1,60}$

The Neon project ID. Returned as id from GET /projects.

string
required
^[a-z0-9-]{1,60}$

The Neon branch ID. Returned as id from GET /projects/{project_id}/branches.

string

Name of the database to associate with the Neon Auth integration. When omitted, the integration uses the project's default database.

string
deprecated

Deprecated. The database role for the auth integration. Omit this field; it is ignored.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json