List Code Scans
Code Scans (Organization)
List Code Scans (Devin API)
List Devin code scans in an organization and poll scan status, with time and repository filters, via the v3 organization API
GET
List Code Scans
Permissions
Requires a service user or personal access token with theViewCodeScans permission at the organization level.
Behavior
Returns the organization’s code scans, 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. To list scans across every organization in an enterprise, use List Code Scans (Enterprise).
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.
after / first).Authorizations
Service User credential (prefix: cog_)
Path Parameters
Organization ID (prefix: org-)
Example:
"org-abc123def456"
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.
Response
Successful Response

