Skip to content

Database API 🟑 BETA

The database family holds the routes mounted for table and record operations.

Developer guide map

Endpoints

Exact lines from the Generated api-database reference; the generated page is the full table.

Method Path
POST /api/database/query
GET /api/database/schema
POST /api/database/table
DELETE /api/database/table/:param
PUT /api/database/table/:param
POST /api/database/table/:param/column
GET /api/database/table/:param/data
GET /api/database/table/:param/export

Example

Minimal HTTP exchange for the first verified route (schemas are not modeled in the generated reference).

POST /api/database/query HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>
HTTP/1.1 200 OK

What it does

Capability Verified endpoint Registered in
Database query POST /api/database/query botserver/crates/botdatabase/src/routes.rs
Database schema GET /api/database/schema botserver/crates/botdatabase/src/routes.rs
Database table POST /api/database/table botserver/crates/botdatabase/src/routes.rs
Database table DELETE /api/database/table/:param botserver/crates/botdatabase/src/routes.rs
Database table PUT /api/database/table/:param botserver/crates/botdatabase/src/routes.rs
Table column POST /api/database/table/:param/column botserver/crates/botdatabase/src/routes.rs
Table data GET /api/database/table/:param/data botserver/crates/botdatabase/src/routes.rs
Export table GET /api/database/table/:param/export botserver/crates/botdatabase/src/routes.rs

Limits

  • The Generated api-database reference is authoritative: no endpoint outside its table is inferred here.
  • Routes require an authenticated session unless listed in the anonymous allowlist in botsecurity-auth/src/auth_api/public_routes.rs.
  • The generated table does not model request or response fields; consult the mounted handler for them.