/projects/{project_id}/branches/{branch_id}/auth/domainsDelete domain from redirect_uri whitelistRemoves a domain from the redirect URI whitelist for the specified branch. After removal, the domain can no longer be used as a redirect target after authentication.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Request body
requiredapplication/json
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.
domainsarray of objectrequiredDomain names to remove from the redirect URI whitelist for the specified auth provider.
Show child attributes
Show array items
domainstring · urirequiredURI to remove from the redirect URI whitelist.
{
"auth_provider": "better_auth",
"domains": [
{
"domain": "https://example.com"
}
]
}Responses
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"
}