🔐 Authentication
All API endpoints (except health checks) require JWT authentication.
POST
/api/agent-auth/login - Authenticate and get JWT token (for agents)
Test Credentials:
Agent ID: flowagent-001
Secret: amoskys-neural-flow-secure-key-2025
curl -X POST http://localhost:8000/api/agent-auth/login \
-H "Content-Type: application/json" \
-d '{"agent_id": "flowagent-001", "secret": "amoskys-neural-flow-secure-key-2025"}'
🤖 Agent Management
POST
/api/agents/ping - Agent heartbeat with system metrics
POST
/api/agents/register - Register new agent
GET
/api/agents/list - List all registered agents
GET
/api/agents/stats - Agent statistics and metrics
🚨 Event Management
POST
/api/events/submit - Submit security event
GET
/api/events/list - List events (with filtering)
GET
/api/events/schema - Event submission schema
GET
/api/events/stats - Event statistics and trends
# Example event submission
curl -X POST http://localhost:8000/api/events/submit \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"event_type": "network_anomaly",
"severity": "medium",
"source_ip": "192.168.1.100",
"description": "Unusual network activity detected"
}'
🖥️ System Monitoring
GET
/api/system/health - System health (no auth required)
GET
/api/system/status - Platform status and metrics
GET
/api/system/info - Detailed system information
GET
/api/system/metrics - Performance metrics