Skip to main content
GET
Per-scan rollup for the results-overview dashboard

Authorizations

Authorization
string
header
required

An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.

Path Parameters

scanId
string<uuid>
required

Response

Scan summary rollup.

Per-scan rollup powering the results-overview dashboard. Only available once the scan reaches status=completed; the endpoint returns 404 while the scan is still in progress.

TODO(multi-producer-reconciliation): update to project-scoped rollup once multi-producer reconciliation lands.

matched_components is capped at 100 entries, ordered by file_count DESC.

scan_id
string<uuid>
required
components_total
integer
required

Count of distinct components in the scan's inventory — fingerprint matched UNION declared in a manifest, deduped by purl+version — PLUS the project's dependency-sourced crypto purls with no component row behind them.

That crypto arm is deliberately PROJECT-scoped, not scan-scoped: a crypto finding carries no stable per-scan attribution, and the pointer previously used for one (findings.last_scan_run_id) is overwritten by every reconcile, so an older scan's summary silently lost crypto components once a newer scan ran. Reporting the project's current crypto inventory keeps this number stable and keeps it equal to the project summary's.

Crypto granularity is the BASE purl, and only source: dependency evidence is admitted — see ProjectSummary.components_total.

match_coverage
object
required

File-level OSS coverage statistics for the scan. oss_pct + original_pct = 100 (integer arithmetic, rounded).

license_distribution
object[]
required

Distinct SPDX ids + occurrence counts, ordered by count DESC.

licenses_total
integer
required

Number of distinct SPDX ids across the scan's components.

vuln_by_severity
object
required

Count of distinct CVE ids per severity level across the scan's components.

dependency_count
integer
required

Total distinct declared dependency purls (scans.dependencies. dep_purl) recorded for this scan. Populated — dependency emission runs unconditionally on every scan. 0 means the scan declared no dependencies, or the count could not be read.

matched_components
object[]
required

Top components ordered by file_count DESC, capped at 100 entries.