Skip to main content

What is Minimal?

Minimal turns your existing database into a live REST API — automatically.

You point it at a database, and it instantly gives you GET, POST, PUT, and DELETE endpoints for every table. No code to write. No ORM. No migrations.


How it fits in

Minimal does not replace your existing infrastructure. It sits one slot away from your database, behind your current gateway or reverse proxy. Your auth, TLS, and rate limiting all stay exactly where they are.

Your App → Your Gateway → Minimal → Your Database

Everything Minimal needs to know about the request — who the user is, what org they belong to, what roles they have — is passed in as headers by your gateway.


There are two types of API

1. System APIs — one-time setup

Used once to register your organization and project. These require a X-Server-Key — a server-to-server credential that never leaves your backend.

APIWhat it does
POST /minimal/system/api/v1/orgCreate an organization
POST /minimal/system/api/v1/projectRegister a project + database connection

2. Auto REST APIs — everyday use

Once setup is done, these are the endpoints you actually use. No X-Server-Key needed — just the standard user headers.

APIWhat it does
GET /minimal/api/rest/auto/v1/{db_type}/{db}/{table}List rows with filters and pagination
POST /minimal/api//rest/auto/v1/{db_type}/{db}/{table}Insert one or more rows
PUT /minimal/api/rest/auto/v1/{db_type}/{db}/{table}Update rows matching a filter
DELETE /minimal/api/rest/auto/v1/{db_type}/{db}/{table}Delete rows matching a filter

Headers at a glance

You will see these headers throughout the docs. Here is what each one means:

HeaderSet byUsed inWhat it represents
X-Org-IdYour gatewayAuto APIsWhich organization this request belongs to
X-Project-IdYour gatewayAuto APIsWhich project (database config) to use
X-Space-IdYour gatewayAuto APIsWhich workspace within the project
X-User-IdYour gatewayAll APIsThe authenticated user making the request
X-User-RolesYour gatewayAuto APIsWhat the user is allowed to do
X-Server-KeyadminSystem APIsProves the request is from a trusted internal service
tip

If you are just exploring the Auto REST API, focus on the first five headers. X-Server-Key only appears during the one-time setup phase from config.yml.


Follow this order the first time:

  1. Architecture — understand where Minimal sits in your stack
  2. Create Organization — register your org
  3. Create Project — connect your database
  4. GET — start querying your data