Reference
Admin API
The /api/* surface the dashboard reads.
The admin API (/api/*) serves JSON to the dashboard. When dashboard auth is enabled, all routes below are gated except /api/auth/*. JSON GET responses support conditional ETag polling (304 on a matching If-None-Match).
Auth
/api/auth/*— Better Auth: first-user signup, username/password and passkey sign-in, session lookup, sign-out.
Models
GET /api/models— list models (merged with running state + peer info)GET /api/models/:id— model detail (stats, events, recent requests, config snippet, key breakdown)POST /api/models/:id/load,/api/models/:id/unload,/api/models/unloadGET /api/model-timeline— load/unload events for the timeline
Requests
GET /api/requests— cursor-paginated listGET /api/requests/stats— req/s, tok/s, p50, error rate + sparklinesGET /api/requests/histogram— bucketed req/s histogramGET /api/requests/:id— detail with adjacent navigation
Usage
GET /api/usage?days=1|7|30|90— rolling 24-hour or UTC-day input/output token totals, previous-period comparison, and configured breakdownsGET /api/usage/summary— output-token totals and series for the last 24 hours, UTC today, 7 days, and 30 daysGET/PATCH /api/settings/usage— read or update the three breakdown dimensions
See Usage for the reporting and retention behavior.
System & events
GET /api/health— upstream reachability, version, latencyGET /api/system— runtime, update status, DB, proxy, log queue, poller status, GPU detailsPOST /api/system/request-logs/prune,POST /api/system/database/compactGET /api/gpu— cached GPU statsGET /api/events— SSE dashboard invalidation/data eventsGET /api/log-events— llama-swap log SSE (Logs page only)
Config & policy
GET/POST /api/config,POST /api/config/validateGET/POST /api/keys,GET/PATCH /api/keys/:id/api/aliases— model alias CRUD/api/routing-rules— routing rule CRUD + reorder/api/upstream-credentials— encrypted credential vault/api/mcp-relays— MCP relay CRUDGET/PATCH /api/settings/attribution,GET/PATCH /api/settings/request-limits
Playground & metrics
POST /api/playground/article-extract— fetch + Readability-parse an article URL for Speech TTSGET /metrics— Prometheus text exporter (see Metrics)
Last updated on