Skip to content

API Overview

The REST API is served by the same process that serves the UI, under /api (for example https://<your-host>:3001/api). All routes require session authentication except the setup and auth endpoints.

GridNMS uses session-based authentication with passkey (WebAuthn) support. Sign in through the UI; the browser session cookie authorizes subsequent API calls. Role-based access control is enforced per route — every endpoint checks the caller’s permissions.

PrefixResource
/api/devicesDevice inventory CRUD, search, state
/api/eventsLive events — list, bulk actions, histogram
/api/events/historyArchived events — search with date range, histogram
/api/vlansVLANs and interface assignments
/api/interfacesDevice interface data, bandwidth metrics, thresholds
/api/neighborsCDP/LLDP neighbor relationships
/api/nodesMAC/IP endpoint nodes
/api/topologyNodes + edges for the topology map
/api/packsPack definitions, collectors, views, thresholds, metrics
/api/pack-collector-overridesPer-device / per-class collector enable/disable
/api/classesDevice class hierarchy
/api/rolesRole definitions with permission matrices
/api/groupsGroup management (role assignment)
/api/mibsMIB upload, OID tree browser, live SNMP query
/api/subscriptionsPer-user event subscriptions
/api/transformationsEvent transformation rules
/api/notification-endpointsNotification endpoint CRUD and delivery queue
/api/maintenanceMaintenance windows
/api/usersUser management
/api/reportsInventory and event-summary reports
/api/dashboardDashboard portlet data
/api/problemsOpen events aggregated by device
/api/searchGlobal search
/api/historyDevice change audit log
/api/discoveryNetwork scan (SSE progress), enrichment, bulk save
/api/setupFirst-run wizard