API Reference
This reference documents the public API served under /api/v1.
Base URL
- Local default:
http://127.0.0.1:8080/api/v1
Authentication
- Public v1 routes use Bearer auth only when
KOJI_SECRETis set on the server. - When required, send:
Authorization: Bearer <KOJI_SECRET>.
Response Envelope
Most endpoints return this JSON envelope:
{
"message": "Success",
"status": "ok",
"status_code": 200,
"data": {},
"stats": null
}Notes:
datais omitted (null) whenbenchmark_mode=trueon calculation endpoints.statsis present for calculation/stat endpoints andnullelsewhere./api/v1/info/returns a raw JSON object (not this envelope).
Pages
Last updated on