Base URLs
- API base:
http://localhost:8000/api - OpenAPI UI (FastAPI):
http://localhost:8000/docs - OpenAPI JSON (FastAPI):
http://localhost:8000/openapi.json
Authentication Model
API key auth is operator-configurable via backend settings.- If
API_AUTH_KEYis unset: requests run without key checks. - If
API_AUTH_KEYis set:- all
/api/*non-GET/HEAD/OPTIONSrequests require auth GET /health?deep=truerequires auth
- all
x-api-key: <key>(recommended)authorization: Bearer <key>
Common Headers
Content-Type: application/jsonfor JSON write endpointsAccept: text/event-streamforPOST /api/chat/streamX-Response-Timeis returned by the API for latency visibility