Base URL:
- via Nginx:
http://localhost:4000/api/v1 - direct:
http://localhost:4015/api/v1
POST /agent/sessionsGET /agent/sessionsGET /agent/sessions/:idDELETE /agent/sessions/:idPOST /agent/sessions/:id/heartbeat
{
"hostname": "IHAB-LAPTOP",
"platform": "windows",
"agentVersion": "0.1.0"
}POST /agent/commandsGET /agent/commandsGET /agent/commands/pendingGET /agent/commands/:idPOST /agent/commands/:id/approvePOST /agent/commands/:id/rejectPOST /agent/commands/:id/complete
The approval flow is human-in-the-loop:
- user creates command
- user approves or rejects it
- CLI polls pending approved commands
- CLI reports completion
POST /agent/reposGET /agent/reposGET /agent/repos/:idPATCH /agent/repos/:idDELETE /agent/repos/:id
POST /agent/eventsGET /agent/events
The CLI uses this to report file-system activity from watched local repositories.