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-Secretheader 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
| Method | Endpoint | Description |
|---|---|---|
| GET | /admin/automation/tasks | View all tasks system-wide |
| POST | /admin/automation/stop-all | Force stop all running tasks |
| GET | /admin/automation/stats | Get system-wide statistics |
Revoke an API key
Revoke (deactivate) an API key without deleting it. The key will remain in the database but will no longer authenticate. This is useful for temporarily disabling access while preserving history.
List all automation tasks (Admin)
View all automation tasks across the entire system. Unlike the user endpoint, this shows ALL tasks regardless of who created them. Useful for monitoring system-wide scraping activity.