v1
latestOpenAPI 3.0.32026-07-26233989.2 KBAgent Analysis
Start Agent Scan
Initiates an AI-powered agent analysis for a repository. The agent uses LLM-based code exploration to perform deep security threat hunting, bug finding, or custom analysis based on user-provided instructions. Files are filtered by extension, size (≤400KB), and line count (≤5000 lines), with a maximum of 500 files per scan.
post/api/agents/scan/start
Request body
Example request
{
"service": "github",
"repo": "owner/repository",
"accessToken": "ghp_xxxxxxxxxxxx",
"branch": "main",
"instructionPrompt": "threat_hunting",
"commitId": "abc123def456",
"includeFiles": "src/**/*.py,lib/**/*.js,app/**/*.ts",
"excludeFiles": "tests/**,node_modules/**,dist/**"
}Response
Agent scan successfully started
Example response
{
"message": "Scan started successfully",
"scanId": "aB3xK9mP2q",
"filesQueued": 142
}