v1
latestOpenAPI 3.0.32026-07-26233989.2 KBAgent Analysis
Get Agent Scan History
Retrieves the history of all agent analysis scans for a repository, sorted by most recent first. Each entry includes metadata about the scan such as the branch, commit, prompt used, and number of files analyzed.
post/api/agents/scan/history
Request body
Example request
{
"repo": "owner/repository"
}Response
Scan history retrieved successfully
Example response
{
"scans": [
{
"service": "github",
"repo_name": "owner/repository",
"branch": "main",
"commit_id": "abc123def456",
"scan_id": "aB3xK9mP2q",
"prompt": "threat_hunting",
"timestamp": "2025-03-15T10:30:00Z",
"num_files": 142
}
]
}