Skip to content

API Reference

m1nd exposes 138+ REST API endpoints for full programmatic access to monitoring, asset management, network discovery, terminal sessions, and administration.

Base URL

http://<HOST_IP>:8080/api

Authentication

API requests authenticate via API keys (header) or session cookies (browser). See Authentication for details.

bash
curl -H "X-API-Key: your-key" http://localhost:8080/api/monitors

Response Format

All endpoints return JSON:

json
// Success
{ "status": "ok", "data": { ... } }

// Error
{ "status": "error", "message": "Description of the error" }

Endpoint Categories

CategoryEndpointsDescription
Monitors14Uptime monitors CRUD, checks, incidents, events
Bra1n30+Asset inventory across 7 entity types
V1sion25+Network discovery, sessions, SSH enrichment
Webhooks6Webhook CRUD and testing
SNMP10SNMP walks, vendor library, templates
Terminal10SSH and Telnet terminal sessions
Tools12Ping, traceroute, curl, port check, BGP, cert check
Alerts & Reports6Alert history, SMTP, email subscribers
System15+Config, users, SSL, updates, OOB, audit log

Real-Time Streams (SSE)

m1nd uses Server-Sent Events for live data. Connect with EventSource:

js
const es = new EventSource('/stream')
es.onmessage = (e) => console.log(JSON.parse(e.data))
StreamPathDescription
Main feedGET /streamLive test results, alerts, monitor events
V1sion scanGET /api/v1sion/scan/:job_id/streamDiscovery scan progress
SSH enrichmentGET /api/v1sion/enrich-ssh/:job_id/streamSSH data collection progress
SSH terminalGET /api/ssh/terminal/:session_id/streamTerminal output stream
Telnet terminalGET /api/telnet/terminal/:session_id/streamTerminal output stream
Dev logsGET /api/dev/logs/streamApplication log stream (admin)

Rate Limiting

Authentication endpoints are rate-limited:

  • Forgot password: 5/minute, 10/hour
  • Login: Rate-limited with account lockout after 5 failures

Released under the MIT License.