Add trusted redirect URI domain

Deprecated. Use /projects/{project_id}/branches/{branch_id}/auth/domains instead. Removal scheduled for March 1, 2026.

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

The Neon project ID

Body Params
uri
required

URI to add to the redirect URI allowlist for the auth provider.

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:
Responses
201

Added the domain to the redirect_uri whitelist

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