cURL
curl --request POST \ --url https://api.codeant.ai/api/analysis/agents/scan/history \ --header 'Content-Type: application/json' \ --data ' { "repo": "owner/repository" } '
{ "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 }, { "service": "github", "repo_name": "owner/repository", "branch": "develop", "commit_id": "def456ghi789", "scan_id": "zY8wV7uT6s", "prompt": "bug_finding", "timestamp": "2025-03-14T08:15:00Z", "num_files": 98 } ] }
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.
Repository identifier
"owner/repository"
Scan history retrieved successfully
List of past agent scans, sorted by most recent first
Show child attributes