Get scan details
Request the details of a scan including the associated deployment, repository, and commit information.
Documentation Index
Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Get access to data with your API token. Example header:
Authorization: Bearer 2991e2fb4b540fe75b8f90677b0b892b6314e4961cb001fe6eb452eee248a628
The token can be provisioned from the Tokens section in your Settings, and requires explicitly enabling Web API access.
Path Parameters
Deployment ID (numeric). Example: 123. Can be found at /deployments, or in your Settings in the web UI.
123
Scan ID (numeric). Example: 456. Can be found at /deployments/{deploymentId}/scans/search.
456
Response
OK
imestamp of when the scan started.
"2023-11-18T23:28:12.391Z"
The unique ID of the deployment associated with the scanned repository.
120
The products used when running the scan.
["secrets"]The unique ID representing this scan.
123
The unique ID of the repository that was scanned.
1234567
when the scan was started
"2023-11-18T23:28:12.391Z"
Miscellaneous statistics about the scan, like number of findings found and scan duration.
{ "findings": 5, "total_time": 100 }