API Overview¶
REST API for automation and integrations.
Base URL¶
Authentication¶
API Key (recommended)¶
Or as Bearer token:
Create keys in Settings → API Keys.
Session Cookie¶
Automatically included when logged in via web UI.
Response Format¶
Errors return:
Status Codes¶
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad request |
| 401 | Unauthorized |
| 404 | Not found |
| 500 | Server error |
Pagination¶
Filtering¶
curl "http://localhost:8080/api/devices?risk_level=high"
curl "http://localhost:8080/api/changes?scan_id=5"
Quick Examples¶
# Get devices
curl -H "X-API-Key: $KEY" http://localhost:8080/api/devices
# Trigger scan
curl -X POST -H "X-API-Key: $KEY" "http://localhost:8080/api/scan/trigger?profile=quick"
# Get stats
curl -H "X-API-Key: $KEY" http://localhost:8080/api/stats
OpenAPI Docs¶
Interactive documentation at http://localhost:8080/docs