Skip to main content
POST
Connect a read-only database

Path Parameters

project_id
string
required

The project's id (not its slug). GET /admin/api/projects lists each project's id and slug.

Body

application/json
name
string
required
Maximum string length: 64
connection_string
string
required

Your own read-only PostgreSQL login, as postgres://user:password@host:5432/database. Create a role with SELECT only, since a login that can write is refused. Write-only: never returned. TLS is required.

schemas
string[]

Schemas shown to agents and put on the search path. Default ["public"].

masked_columns
string[]

Column names whose values are returned as [masked].

Response

Successful operation

The response is of type object.