Introduction
The Sentinel AI API provides programmatic access to monitor and manage services, interact with the autonomous agent, and query the knowledge base. Built with FastAPI, the API follows REST principles and returns JSON responses.Base URL
The default base URL for the API is:The actual host and port may vary based on your deployment configuration.
API Version
Current API version: 2.0.0Authentication
The current version of the Sentinel AI API does not require authentication. CORS is enabled for all origins to facilitate development and integration.Common Patterns
Response Format
All endpoints return JSON responses. Successful responses typically include:status: Operation status (e.g., “ok”, “started”, “stopping”)message: Human-readable message describing the result- Additional fields specific to the endpoint
Error Handling
The API uses standard HTTP status codes:200: Successful operation400: Bad request (invalid parameters)404: Resource not found409: Conflict (e.g., agent already running)503: Service unavailable (e.g., knowledge base initializing)
detail field with information about the error:
Health Check
A simple health check endpoint is available at the root:Endpoint Categories
The API is organized into the following categories:Agent Control
Start, stop, and manage the autonomous monitoring agent
Service Management
Monitor services and manage service configurations
Chat Interface
Query the knowledge base with streaming responses
WebSocket Logs
Real-time log streaming via WebSocket connection
Real-time Updates
Sentinel AI supports real-time event streaming through:- WebSocket: Connect to
/ws/logsfor live log events - Server-Sent Events (SSE): The
/chatendpoint streams responses as SSE
Configuration Endpoint
Retrieve current system configuration:List of monitored service names
Monitoring interval in seconds
Maximum retry attempts for failed operations
Agent operation mode (“on-demand” or “continuous”)
Next Steps
Explore the specific endpoint documentation:- Agent Control - Control the autonomous monitoring agent
- Service Management - Manage monitored services
- Chat Interface - Query the knowledge base
- WebSocket - Real-time log streaming