Add domain to redirect_uri whitelist

Adds a domain to the redirect URI whitelist for the specified branch.
Only domains in this list are permitted as redirect targets after authentication.

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

The Neon project ID

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

The Neon branch 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