Skip to main content
POST
Count the open findings a bulk-resolve would affect

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.

Body

application/json

Selection for a bulk-resolve preview: counts the currently open, unsuppressed findings the equivalent bulk-resolve would newly resolve, without changing anything.

domain_slug
string
required

Producer domain_slug to filter findings (e.g. "oss").

reason_slug
string
required

Resolve reason slug the eventual bulk-resolve would use (e.g. mark_original, replace_component). Determines the finding-domain family the selection targets.

project_id
string<uuid> | null

Project scope. Absent or null = organization-wide (all projects).

path_prefix
string | null

Optional folder path prefix scope filter.

purl
string | null

Optional component PURL scope filter. A version-less purl (e.g. "pkg:npm/lodash") matches every versioned finding of that base purl — the same matching the scan-time Component override applies.

Response

Preview count

Result of a bulk-resolve preview. Read-only — nothing changes.

matching
integer
required

Count of currently open, unsuppressed findings the equivalent bulk-resolve would newly resolve.