List code, supply chain, or AI-powered scan findings
Request the list of code or supply chain findings in an organization, paginated in pages of 100 entries and limited by the since timestamp. Findings are returned by relevant_since descending (see since in the Query Parameters list). Examples: List SAST findings with pagination, List SCA findings since timestamp, List findings with filters.
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
Slug of the deployment name. Can be found at /deployments, or in your Settings in the web UI.
"your-deployment"
Query Parameters
Type of findings to return. If not specified, returns sast (Code) findings. Can either be sast (Code) or sca (Supply Chain). Valid values: sast, sca
sast, sca "sca"
What timestamp should the results start at? If not specified, returns results from all timestamps. Provide epoch timestamp in seconds. Filters using the relevant_since field: the timestamp when this finding was detected by Semgrep (the first time, or when reintroduced).
1636942398.45
Which page of the results do you require? If not specified, returns first page. Pages are numbered from zero (0).
1
Deduplicates findings across all your refs/branches if true. If not specified, returns all findings across all refs/branches without deduplicating them. Set this to true if you are not filtering for a particular set of refs/branches in order to match the counts listed in the Semgrep UI.
true
Maximum number of records per returned page. If not specified, defaults to 100 records. Minimum: 100, Maximum: 3000
100 <= x <= 3000100
Which repositories (by name) do you want to include? If not specified, includes all.
["myorg/repo1", "myorg/repo2"]Which repositories (by ID) do you want to include? If not specified, includes all.
[1, 2, 3]Which status do you want to include? If not specified, includes all. Valid values: open, fixed, ignored, reviewing, fixing
open, fixed, ignored, reviewing, fixing "open"
Which triage reasons do you want to include? If not specified, includes all. This filter is applicable when status is ignored. Valid values: acceptable_risk, false_positive, no_time, no_triage_reason
["acceptable_risk", "false_positive"]What severities of issues do you want to include? If not specified, returns all. Valid values: low, medium, high, critical
["low", "high"]Which ref (branch) do you want to filter for?
"refs/pull/1234/merge"
Which policy modes do you want to include? If not specified, includes all. Monitor: rule-board-audit, Comment: rule-board-pr-comments, Block: rule-board-block. This filter is applicable when issue_type is sast or unspecified.
[
"rule-board-block",
"rule-board-pr-comments",
"rule-board-audit"
]Which rule names do you want to include? If not specified, includes all. This filter is applicable when issue_type is sast or unspecified.
[
"typescript.react.security.audit.react-no-refs.react-no-refs",
"ajinabraham.njsscan.hardcoded_secrets.node_username"
]Which categories of findings do you want to include? If not specified, includes all. This filter is applicable when issue_type is sast or unspecified.
["security", "correctness", "caching"]Which rule confidence level do you want to include? If not specified, includes all. This filter is applicable when issue_type is sast or unspecified. Valid values: low, medium, high
low, medium, high "high"
Which autotriage verdict do you want to include? If not specified, includes all. This filter is applicable when issue_type is sast or unspecified. Valid values: true_positive, false_positive
true_positive, false_positive "true_positive"
Which component tags do you want to include? If not specified, includes all.
["user authentication", "user data"]List of exposures or reachability types to filter by. If not specified, returns findings across all exposures. This filter is applicable when issue_type=sca is specified. Valid values: reachable, always_reachable, conditionally_reachable, unreachable, unknown
["reachable", "always_reachable"]List of transitivities to filter by. If not specified, returns all transitivities. This filter is applicable when issue_type=sca is specified. Valid values: direct, transitive, unknown
["transitive"]Filter SCA findings by whether they are from malicious dependencies. If not specified, returns all SCA findings. This filter is only applicable when issue_type=sca is specified.
- true: Returns only findings from malicious dependencies
- false: Returns only findings from all other reachabilities (reachable in code, always reachable, conditionally reachable, etc.)
true
Filter findings by Click-to-Fix PR state. If not specified, returns all findings regardless of autofix PR status. This filter applies to both sast and sca issue types. Valid values: open, merged
["open", "merged"]Response
OK
Response containing a paginated list of findings (either Code or Supply Chain findings) with optional filtering applied