List scans (beta)
List the scans associated with a particular repository over the past 30 days.
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
Body
Only get scans from the specified branch
Cursor to paginate through the results
Deployment ID (numeric). Example: 123. Can be found at /deployments, or in your Settings in the web UI.
123
Only get scans that are full scans (if false, only get diff scans)
Page size to paginate through the results (default is 100, max is 500)
Only get scans that have these enabled products
| value | description |
|---|---|
| PRODUCT_SAST | |
| PRODUCT_SCA | |
| PRODUCT_SECRETS | |
| PRODUCT_AI_SAST |
PRODUCT_UNSPECIFIED, PRODUCT_SAST, PRODUCT_SCA, PRODUCT_SECRETS, PRODUCT_AI_SAST Only get scans for this repo
Only get scans created after this time. Provide time in ISO 8601 format.
Only get scans that have one of these statuses
| value | description |
|---|---|
| SCAN_STATUS_RUNNING | The scan is currently running |
| SCAN_STATUS_COMPLETED | The scan has completed successfully (0 or 1 exit code) |
| SCAN_STATUS_ERROR | The scan has exited with a failure (exit code not 0 or 1) |
| SCAN_STATUS_NEVER_FINISHED | The scan did not report an error or success after over an hour |
SCAN_STATUS_RUNNING, SCAN_STATUS_COMPLETED, SCAN_STATUS_ERROR, SCAN_STATUS_NEVER_FINISHED