Anvesh
API Reference

Admin - Automation

Admin-only endpoints for system-wide automation monitoring and control

Admin Automation API

System-wide automation management for administrators.

[!IMPORTANT] All endpoints require X-Admin-Secret header for authentication.

Quick Start

# View all system tasks
curl http://localhost:8000/admin/automation/tasks \
  -H "X-Admin-Secret: your-admin-secret"

# Get system statistics
curl http://localhost:8000/admin/automation/stats \
  -H "X-Admin-Secret: your-admin-secret"

# Emergency stop all tasks
curl -X POST http://localhost:8000/admin/automation/stop-all \
  -H "X-Admin-Secret: your-admin-secret"

Endpoints

MethodEndpointDescription
GET/admin/automation/tasksView all tasks system-wide
POST/admin/automation/stop-allForce stop all running tasks
GET/admin/automation/statsGet system-wide statistics

On this page