v1
latestOpenAPI 3.0.32026-07-26233989.2 KBAgent Analysis
Get Agent Scan Results
Retrieves the results of an agent analysis scan. If the scan is still in progress, returns a status of in_progress. Once complete, returns deduplicated issues found across all analyzed files. Issues are deduplicated using LLM-based analysis to remove duplicate findings across files.
post/api/agents/scan/results
Request body
Example request
{
"repo": "owner/repository",
"scanId": "aB3xK9mP2q"
}Response
Scan results retrieved successfully
Example response
{
"scanId": "aB3xK9mP2q",
"repoName": "owner/repository",
"status": "completed",
"results": [
{
"file": "src/auth/login.py",
"issues": [
{
"relevant_file": "src/auth/login.py",
"language": "python",
"suggestion_content": "The `authenticate` function does not validate the length of the password parameter before passing it to the bcrypt hashing function.",
"start_line": 45,
"end_line": 52,
"one_sentence_summary": "Password length not validated before bcrypt hashing",
"label": "Security",
"severity": "medium",
"cwe_id": "CWE-916",
"exploitability": "Requires attacker to know the truncation behavior of bcrypt",
"agent_instructions": "threat_hunting"
}
]
}
],
"totalIssues": 5
}