/projects/{project_id}/branches/{branch_id}/authRetrieve Neon Auth details for the branchRetrieves the Neon Auth integration details for the specified branch, including the auth provider type and integration status.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Responses
auth_providerstringrequiredAuthentication 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.
auth_provider_project_idstringrequiredProject identifier assigned by the auth provider for this integration.
base_urlstringBase URL of the Neon Auth service endpoint for this integration. Injected into the project environment as `NEON_AUTH_BASE_URL`.
branch_idstringrequiredThe Neon branch ID. Returned as `id` from `GET /projects/{project_id}/branches`.
created_atstring · date-timerequiredTimestamp when the Neon Auth integration was created, in RFC 3339 format (UTC).
db_namestringrequiredName of the database used by the Neon Auth integration.
jwks_urlstringrequiredURL of the provider's JWKS endpoint used to verify JWTs.
namestringApplication name shown in auth emails and communications. Defaults to the project name.
owned_bystringrequiredtransfer_statusstring{
"auth_provider": "better_auth",
"auth_provider_project_id": "string",
"base_url": "string",
"branch_id": "br-cool-darkness-12345678",
"created_at": "2025-01-15T10:30:00Z",
"db_name": "string",
"jwks_url": "string",
"name": "string",
"owned_by": "neon",
"transfer_status": "finished"
}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"
}