Auto APIHow to serve every database table as a REST API

Every table, a REST API and MCP tools. No routes to write.

Auto API is the part of Minimal Core that answers on every table of the database you register, behind the sign-in you already have.

acme / people / postgres / acme / employee

Request

GET /minimal/api/rest/auto/v1/acme/people/postgres/acme/employee?fc=id,full_name&oy=id.as&ps=3&pg=0
LB-Access-Token: <your-access-token>

Response · 200

[
  { "id": 1, "full_name": "Rafael Delacroix" },
  { "id": 2, "full_name": "Rafael Müller" },
  { "id": 3, "full_name": "Rafael Novak" }
]

fc picks columns, oy orders, ps and pg page. Paging is mandatory, so no call reads a table whole by accident.

One table, three kinds of caller.

List, filter, insert, update and delete, as JSON, CSV or YAML. Each call is checked against the roles on the table and audited, whichever way it arrives.

Humans

Your apps and screens, over REST.

Agents

AI agents, as MCP tools, under the caller’s roles.

Machines

Devices and services, machine to machine, each with its own access token.

It drops in behind the sign-in you already have.

Minimal Core has no login screen. It runs on a private address that only your gateway reaches, and your gateway says who is calling in five headers.

HeaderWhat your gateway is saying
X-Org-IdWhich organisation: your company, or one of your customers.
X-Project-IdWhich application and its databases.
X-Space-IdWhich environment: dev, staging or prod.
X-User-IdWho is calling: a person, a service or an AI agent.
X-User-RolesThe roles the caller holds.

No users to migrate and no second login to build. The gateway must be the only way in and must set the five headers itself. The Book of Minimal, Vol. III, builds it with Zitadel and APISIX.

Permission lives on the table.

A role is a word your gateway sends. Minimal Core never decides what it means.

Roles

Each table says who may do what.

Which roles may read, create, update or delete, across REST, MCP and machine-to-machine calls. An empty list means nobody.

Defaults

A new table is read-only.

Writes, AI agents and service callers stay locked until you open them, role by role.

Rows

Each caller sees only their own rows.

Bind one column to one request header and every read is filtered to match it.

Record

An audit row for every call.

Who, which route, which status, how long. Traces go to any OpenTelemetry collector.

When a table is not the whole answer.

A payroll total is logic, not a table. Write it as a Custom API, or ask your AI agent to build it in plain English. Custom API ›

Two years in production, on our own app.

Minimal Core serves the analytics of Talk, our Android app.

3.8MInstalls
~1MAnalytics events a day
2 yearsIn production
$15Monthly infrastructure

Register a database. Every table answers.

Free licence: 50,000 requests a month, for any use, commercial included. Sign in with Google or GitHub, download your licence file. No card.