FiniDB HTTP API
Hosted base URL: /db/<project>/… with Authorization: Bearer <project token>. Local: http://127.0.0.1:7407/db/<db>/…. Machine-readable: openapi.json. Push is Server-Sent Events on /subscribe.
| get | /db | List databases |
| post | /db | Create a database |
| post | /db/{db}/apply | Apply a batch of commands atomically |
| post | /db/{db}/query | Read a grid |
| post | /db/{db}/explain | Explain one cell |
| get | /db/{db}/describe | Compact model summary for agents |
| get | /db/{db}/spec | Full model spec |
| get | /db/{db}/errors | Cells in error |
| get | /db/{db}/coverage | Which rule governs how many cells of a line item |
| get | /db/{db}/stats | Engine statistics |
| post | /db/{db}/parse_formula | Parse a formula into its AST (no schema binding) |
| post | /db/{db}/validate_formula | Compile a formula against a module without applying it |
| post | /db/{db}/import | Import CSV (text/csv body) or JSON rows into a table |
| get | /db/{db}/export | Export spec (json) or a grid (csv) |
| post | /db/{db}/recompute | Discard the computed cache and recalculate every cell (then save) |
| post | /db/{db}/save | Force a save |
| get | /db/{db}/subscribe | Server-Sent Events for a query window: snapshot, delta, layout, error |