Hosted Repository Scanning REST APIs
Use these APIs to work with Hosted Repository Scanning results in a way that fits into your own automation and reporting workflows. You can list scanned components, view component reports, export SBOMs, request remediation recommendations, and review dependency data.
Before you begin
Hosted Repository Scanning must be enabled.
Authentication is required for every endpoint.
You must have Hosted Repositories Write access to use the Hosted Repository Scanning REST APIs.
Reachability evidence requires the Call Flow Analysis entitlement.
Endpoint groups
1. List what has been scanned
Endpoint | Returns | Permission |
|---|---|---|
| Every scanned artifact in a hosted repository, including violation counts, match state, scan ID, and stage. | Hosted Repositories Write |
2. Read a component’s scan results
Endpoint | Returns | Permission |
|---|---|---|
| Policy violations for one component. | Hosted Repositories Write |
| Unfiltered component data such as licenses, vulnerabilities, age, and popularity. | Hosted Repositories Write |
| The component’s dependency structure. | Hosted Repositories Write |
| Previous evaluations of the component over time, with report links per scan. | Hosted Repositories Write |
| Call-path evidence for one vulnerability. | Hosted Repositories Write |
3. Export an SBOM
Endpoint | Returns | Permission |
|---|---|---|
| CycloneDX SBOM for the latest evaluation at a stage. | Hosted Repositories Write |
| CycloneDX SBOM for a specific report. | Hosted Repositories Write |
| SPDX SBOM for the latest evaluation at a stage. | Hosted Repositories Write |
| SPDX SBOM for a specific report. | Hosted Repositories Write |
4. Get an upgrade recommendation
Endpoint | Returns | Permission |
|---|---|---|
| Recommended version for one component. | Hosted Repositories Write |
| Recommended versions for multiple components in one request. | Hosted Repositories Write |