Create Neon Data API

Creates a new instance of Neon Data API in the specified branch.
The Data API exposes a REST interface over the branch database. The database_name path parameter determines which database the API serves.

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

The Neon project ID

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

The Neon branch ID

string
required

The database name

Body Params

Create Neon Data API

string
enum

Authentication provider for the Neon Data API. neon_auth: use Neon's built-in managed authentication (no JWKS configuration required). external: use an external JWT provider, which requires jwks_url. When omitted, no auth provider is configured (existing setup is kept).

Allowed:
uri

URL of the JWKS endpoint used to verify JWTs for this Data API. Required when configuring JWT-based authentication; omit when using a non-JWT auth provider.

string

Display name for the authentication provider. Accepted values include "Clerk", "Stytch", and "Auth0", but any non-empty string is valid. Optional field.

string

Expected aud claim in incoming JWTs. When set, tokens with a different audience are rejected; tokens with no audience are still accepted. Omit to skip audience validation.

boolean
Defaults to false

Grant all permissions to the tables in the public schema to authenticated users

boolean
Defaults to false

Skip creating the auth schema and RLS functions

settings
object

Auth and schema configuration for the Data API.

Responses

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