Skip to main content
Documentation

Router Apiserver API Reference

Router apiserver is the HTTP control surface served on :8080.

Version: Latest

Router Apiserver API Reference

Router apiserver is the HTTP control surface served on :8080.

Base URL

http://localhost:8080

Live Schema

  • GET /api/v1: discovery index
  • GET /openapi.json: live OpenAPI schema
  • GET /docs: Swagger UI

Use /openapi.json or /docs for the exact live request and response schema. This page is a compact reference to the currently documented surface.

Discovery and Health

MethodPathDescription
GET/healthHealth check endpoint
GET/readyReadiness endpoint that turns green only after startup completes
GET/api/v1API discovery and documentation
GET/openapi.jsonOpenAPI 3.0 specification
GET/docsInteractive Swagger UI documentation

Classification

MethodPathDescription
POST/api/v1/classify/intentClassify user queries into routing categories
POST/api/v1/classify/piiDetect personally identifiable information in text
POST/api/v1/classify/securityDetect jailbreak attempts and security threats
POST/api/v1/classify/fact-checkClassify whether text needs fact-checking
POST/api/v1/classify/user-feedbackClassify user feedback type
POST/api/v1/classify/combinedCombined classification endpoint
POST/api/v1/classify/batchBatch classification with task_type selection

Models and Info

MethodPathDescription
GET/info/modelsGet information about loaded models
GET/info/classifierGet classifier information and status
GET/v1/modelsOpenAI-compatible model listing
GET/metrics/classificationGet classification metrics and statistics

Router Config

MethodPathDescription
GET/config/routerGet the current router config as JSON
PATCH/config/routerMerge a router config update
PUT/config/routerReplace the router config
GET/config/router/versionsList available router config backup versions
POST/config/router/rollbackRoll back to a previous router config version

Config Semantics

  • GET /config/router returns the current router config document.
  • PATCH /config/router uses merge semantics.
  • PUT /config/router uses replace semantics.
  • PATCH and PUT both validate, back up, write, and hot-reload before returning.

Notes

  • The endpoint list above mirrors the router apiserver discovery surface exposed by GET /api/v1 and GET /openapi.json.
  • Some documented endpoints may still be placeholder implementations in the current runtime, such as POST /api/v1/classify/combined and GET /metrics/classification.