For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Reference

pREST API reference β€” REST (Representational State Transfer) HTTP endpoints that map to SQL on the native PostgreSQL adapter (and certified engines).

pREST generates HTTP APIs from your database catalog. Today the native dialect is PostgreSQL (and Postgres-compatible engines documented under Databases). This reference covers endpoints, parameters, auth, and advanced query patterns.

What is REST?

REST (Representational State Transfer) is an architectural style for building APIs over HTTP. pREST exposes your SQL tables as REST resources at /{database}/{schema}/{table}, mapping standard verbs to CRUD on the same server as MCP.

Application backends, mobile and web clients, and any HTTP client that needs CRUD on SQL tables use that surface. This reference documents the endpoints below; see also Parameters and Auth.

prestd implements HTTP verbs that map to SQL data operations on the connected engine.

GET

SQL SELECT (PostgreSQL dialect mapping)

Endpoints
Description

/_health

Liveness probe β€” pings default database

/_ready

Readiness probe β€” pings default database and all registered aliases

/_mcp

MCP discovery β€” server metadata and available read-only tools (guide, stdio adapter)

/databases

List all databases

/schemas

List all schemas

/tables

List all tables

/show/{DATABASE}/{SCHEMA}/{TABLE}

Lists table structure - all fields contained in the table

/{DATABASE}/{SCHEMA}

Lists table tables - find by schema

/{DATABASE}/{SCHEMA}/{TABLE}

List all rows, find by database, schema and table

/{DATABASE}/{SCHEMA}/{VIEW}

List all rows, find by database, schema and view

POST

Endpoints
Description

/_mcp

MCP JSON-RPC β€” initialize, tools/list, tools/call (guide, stdio adapter)

SQL INSERT (PostgreSQL dialect mapping)

JSON DATA:

PATCH and PUT

SQL UPDATE (PostgreSQL dialect mapping)

Using query string to make filter (WHERE), example:

JSON DATA:

unconditional update can update unwanted record

DELETE

SQL DELETE (PostgreSQL dialect mapping)

Using query string to make filter (WHERE), example:

unconditional delete can delete unwanted record

Last updated