API Reference
A practical index of the versioned HTTP API, its protected endpoint groups and the generated Swagger reference.
Based on the Civernode alpha-1.0.0 documentation, reviewed 28 November 2026. Version and deployment settings affect availability.
Base path and authentication
Versioned routes use /api/v1/. Protected endpoints require a Keycloak access token in Authorization: Bearer …. Authorization is enforced per endpoint; the summaries below are selective, not an exhaustive authorization matrix.
In local development, Swagger is documented at http://localhost:3001/api. Use the running deployment’s API host and its Swagger path where enabled.
Endpoint groups
| Area | Representative routes | Access / behavior |
|---|---|---|
| Health & identity | GET /api/v1/healthGET /api/v1/auth/me | Health is public; identity requires a Bearer token. |
| Setup | /api/v1/setup/* | Status for authenticated users; organization/site/complete/reopen writes require ADMIN. |
| IPAM | /sites, /vlans, /subnets, /ip-addresses, /vrfs | Protected and scope-checked; writes generally require ADMIN or NETWORK_OPERATOR. |
| Discovery | /discovery/jobs, /discovery/results/:id/review | Jobs enqueue in Redis BullMQ; worker required. Results are reviewed before promotion. |
| Infrastructure | /devices, /interfaces, /racks, /assets | Role and resource scopes apply; device deletion archives as RETIRED. |
| Audit | GET /api/v1/audit/events | ADMIN or AUDITOR. |
| SNMP | GET /api/v1/snmp/devices/:deviceIdGET .../lldp-observations, GET .../topology-proposalsPOST /api/v1/snmp/topology-proposals/:id/apply|reject|undo | All listed reads require authentication and device scope; reads allow ADMIN, NETWORK_OPERATOR, AUDITOR or READ_ONLY. Proposal writes allow ADMIN or NETWORK_OPERATOR. |
Dashboard, settings and workspace endpoints
Other implemented API groups include dashboard workspaces/layout and operational summaries; inventory-quality findings/summary; application-link catalog reads and admin-only create/update/delete/availability checks; settings for organization, discovery, SNMP listeners, audit policy, users, role requests and access groups; and the authenticated profile role-request endpoints.
Inventory-quality assignment, acknowledgement and snooze are restricted to ADMIN, NETWORK_OPERATOR or SYSTEMS_OPERATOR; administrator reconciliation is ADMIN-only. Role-request submission is authenticated and administrator decisions are ADMIN-only. Settings controls have endpoint-specific role gates, so do not infer a blanket permission rule from this overview.
Example paths: /api/v1/dashboard/workspaces, /api/v1/dashboard/layout, /api/v1/inventory-quality/findings, /api/v1/application-links, /api/v1/settings/role-requests/me.
Pagination and validation
Documented list endpoints commonly accept search, page and pageSize and return paged items with totals. IP address search also supports source filtering. The API validates IPv4 subnet membership and normalizes IPv4 CIDR input.
Endpoint paths and role requirements evolve with the application. Use the generated Swagger spec and current source documentation for the exact request schema and response contract.
