Skip to main content
POST
/
api
/
analysis
/
agents
/
scan
/
results
Get Agent Scan Results
curl --request POST \
  --url https://api.codeant.ai/api/analysis/agents/scan/results \
  --header 'Content-Type: application/json' \
  --data '
{
  "repo": "owner/repository",
  "scanId": "aB3xK9mP2q"
}
'
{ "scanId": "aB3xK9mP2q", "repoName": "owner/repository", "status": "completed", "results": [ { "file": "src/auth/login.py", "scan_id": "aB3xK9mP2q", "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. Extremely long passwords (>72 bytes) are silently truncated by bcrypt, which could lead to collision vulnerabilities.", "start_line": 45, "end_line": 52, "one_sentence_summary": "Password length not validated before bcrypt hashing", "label": "Security", "severity": "medium", "cwe_id": "CWE-916", "agent_instructions": "threat_hunting" } ] } ], "totalIssues": 1 }

Body

application/json
repo
string
required

Repository identifier

Example:

"owner/repository"

scanId
string
required

Scan identifier returned from the start scan endpoint

Example:

"aB3xK9mP2q"

Response

Scan results retrieved successfully

scanId
string

Scan identifier

Example:

"aB3xK9mP2q"

repoName
string

Repository name

Example:

"owner/repository"

status
enum<string>

Current status of the scan

Available options:
completed,
in_progress
Example:

"completed"

results
object[]

List of file results with issues found

totalIssues
integer

Total number of deduplicated issues found across all files

Example:

5