List Code Scans
Code Scans (Enterprise)
List Code Scans (Devin API)
List Devin code scans across an enterprise and poll scan status, with time, repository, and organization filters via the v3 API
GET
List Code Scans
Permissions
Requires a service user or personal access token with theViewAccountCodeScans permission at the enterprise level.
Behavior
Returns code scans across the enterprise, newest first. Use it to poll thestatus of a scan started with Start Code Scan: waiting → pending → running → completed (or failed / cancelled). awaiting_user_input applies only to interactive scans started from the web app; API-started scans do not enter it.
Filters
time_after/time_before: Unix timestamps in seconds (UTC) bounding the scan creation time.repo_name: only scans that scanned this repository. Matches multi-repo scans that include it.org_ids: only scans in these organizations.
after / first). For a single organization, use List Code Scans (Organization).Authorizations
Service User credential (prefix: cog_)
Query Parameters
Required range:
1 <= x <= 200Filter to scans that scanned this repository. Matches multi-repo scans even when the repository is not the scan's primary repo, so returned items may report a different repo_name.
Filter to scans in these organizations.
Response
Successful Response

