| sidebar_position | 4 |
|---|---|
| title | Agent Admin Endpoints |
| description | REST API endpoints for agent administration — list agents, create tokens, manage tasks and schedules. |
All endpoints require Clerk JWT authentication.
GET /api/agent/admin/agents
Returns all enrolled agents with status, system info, and tags.
POST /api/agent/admin/tokens
Body:
{
"ttl_hours": 24,
"max_uses": 10,
"description": "Lab deployment batch"
}POST /api/agent/admin/tasks
Body:
{
"agent_ids": ["agent-uuid-1", "agent-uuid-2"],
"test_uuid": "test-uuid",
"platform": "windows",
"arch": "amd64",
"es_index": "achilles-results-engagement1"
}GET /api/agent/admin/schedules
POST /api/agent/admin/schedules
Body:
{
"test_uuid": "test-uuid",
"frequency": "daily",
"time": "09:00",
"agent_ids": ["agent-uuid"],
"platform": "windows",
"arch": "amd64",
"randomize": true
}