An API for every table.

Pages, actions, workflows and outside tools share one data API. It describes itself in OpenAPI and runs every request as the caller.

Data APIclinic, signed in as a patient
  • GET/__appbricx/api/v1/appointment2003 rows, the patient's own
  • POST/__appbricx/api/v1/appointment422That time is not available.
  • GET/__appbricx/api/v1/search?q=flow200full-text, filtered by access
  • POST/__appbricx/queries/todays_schedule20014 rows
  • GET/__appbricx/api/v1/openapi.json200every table, described
List, get, create, update, delete
Every table
/__appbricx/api/v1/openapi.json
OpenAPI
Full-text search, counts and sums
Search and aggregates
db/queries/*.sql with typed params
Named queries

What you get

  • CRUD for every table

    Filters, sorting and cursors, each call run as the caller.

  • Search and aggregates

    Postgres full-text search, counts, sums and group-bys.

  • Named queries

    SQL in db/queries with typed params and roles.

  • OpenAPI

    Point a client generator or another agent at openapi.json.

How the data API works

http
# signed in as a member: only rows the policies allow
GET /__appbricx/api/v1/booking?sort=-booked_at

# full-text search on the table's own search column
GET /__appbricx/api/v1/class_session/search?q=sunrise

# db/queries/todays_schedule.sql, with a typed param
POST /__appbricx/queries/todays_schedule
{ "day": "2026-10-28" }

# the whole API, described
GET /__appbricx/api/v1/openapi.json
Atelier, a marketplace for handmade goods, on desktop
Atelier serves three roles from one APIOpen Atelier

Questions

Do I have to write API endpoints?

No. Every table gets list, get, create, update, delete, aggregate and search routes. Write a server action only for logic the data API doesn't cover.

Is the API secure by default?

Yes. Every request runs as the caller and Postgres row-level security filters the rows. A table with no policy for a role gives that role nothing, so a new table is private until you write a policy.

Is there an OpenAPI spec?

Yes. Each app serves its description at /__appbricx/api/v1/openapi.json.

Ship it with your agent.

claude mcp add --transport http appbricx https://appbricx.com/api/mcp