Skip to content

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.