Auth

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.

post/projects/{project_id}/branches/{branch_id}/auth/domains

Request

  • Base URL: https://console.neon.tech/api/v2
  • URL: https://console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/domains
  • Auth: one of:
    • HTTP bearer
    • API key in cookie zenith
    • API key in cookie keycloak_token

Request body

domainstring uri required

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

auth_provider'mock' | 'stack' | 'better_auth' 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.

Response

Added the domain to the redirect_uri whitelist

Changes

No recorded changes to this operation across all 15 revisions of this API.