Retrieve connection URI

Retrieves a connection URI for the specified database. The URI uses the standard PostgreSQL connection string format. Set pooled=true to include the -pooler suffix for a connection pooler URI.

Path Params
string
required

The Neon project ID

Query Params
string

The branch ID. Defaults to your project's default branch_id if not specified.

string

The endpoint ID. Defaults to the read-write endpoint_id associated with the branch_id if not specified.

string
required

The database name

string
required

The role name

boolean

Adds the -pooler option to the connection URI when set to true, creating a pooled connection URI.

Responses

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