REST API¶
OpsMini exposes two standard REST APIs for the browser UI and external integration.
Overview¶
| API | Prefix | Consumer | Auth |
|---|---|---|---|
| Panel API | /api/v1 |
Browser (humans) | User JWT + RBAC |
| Agent API | /agent/v1 |
External systems (machines) | Agent Token + command allowlist |
| Prometheus metrics | /metrics |
Monitoring systems | Optional Basic auth |
Unified response: { "code": 0, "message": "ok", "data": ... }. A non-zero code is a business error.
-
Auth, users, monitoring, websites, containers, files, AI, and more.
-
Machine-to-machine resource management and command execution.
-
node_exporter-compatible metrics, scraped directly by Prometheus.