Dashboard
AI Autopilot API Documentation
Integration guide for external tools and webhooks
Endpoints
Authentication
Most endpoints require a JWT token in the Authorization header.
Authorization: Bearer <your_jwt_token>
POST
/api/v1/ai/webhook
Trigger the AI Autopilot by sending an alert payload. Designed for external monitoring tools.
Request Body
| Field | Type | Description |
|---|---|---|
| source | string | Source of the alert (e.g., "Prometheus") |
| alert | string | Raw alert message or details |
Example
curl -X POST http://localhost:5001/api/v1/ai/webhook \
-H "Content-Type: application/json" \
-d '{
"source": "External Monitor",
"alert": "Device Core-Router-01 is unreachable. ICMP packet loss 100%."
}'
GET
/api/v1/ai/incidents
Retrieve a list of all AI incidents.
curl -X GET http://localhost:5001/api/v1/ai/incidents \
-H "Authorization: Bearer <your_token>"
POST
/api/v1/ai/approve/<id>
Approve a pending incident plan and trigger execution.
curl -X POST http://localhost:5001/api/v1/ai/approve/123... \
-H "Authorization: Bearer <your_token>"
POST
/api/v1/ai/stop/<id>
Immediately halt the execution of a running incident.
curl -X POST http://localhost:5001/api/v1/ai/stop/123... \
-H "Authorization: Bearer <your_token>"