/projects/{project_id}/branches/{branch_id}/auth/domainsList domains in redirect_uri whitelistLists the trusted domains in the redirect URI whitelist for the specified branch. Only domains in this list are permitted as redirect targets after authentication.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Responses
domainsarray of objectrequiredDomains permitted as redirect URI targets in the whitelist.
Show child attributes
Show array items
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.
domainstringrequiredAllowed redirect URI domain for the auth provider.
{
"domains": [
{
"auth_provider": "better_auth",
"domain": "string"
}
]
}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"
}