Retrieve database schema

Retrieves the schema from the specified database. The lsn and timestamp values cannot be specified at the same time. If both are omitted, the database schema is retrieved from database's head.

Path Params
string
required

The Neon project ID

string
required

The branch ID

Query Params
string
required

Name of the database for which the schema is retrieved

string

The Log Sequence Number (LSN) for which the schema is retrieved

date-time

The point in time for which the schema is retrieved

string

The format of the schema to retrieve. Possible values:

  • sql (default)
  • json
Responses

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