Every scan that records a software inventory records each component’s declared licences with it, so the licence inventory needs no extra scanner configuration or build step. It is derived from the stored components on every read, never materialised: a stored copy would go stale the moment a rescan corrected an asset. A licence is a fact about an asset, not a finding. It cannot be suppressed, because a licence report someone could suppress a copyleft component out of would not be a licence report. Which ecosystems carry licence data depends on what each package’s own metadata declares; a component that declares none is counted as unlicensed, not guessed.

1. Read the inventory

For the whole estate, or one asset:
The key needs assets:read. asset_id is the asset’s UUID; anything else is 400. max_components (default 50,000, at most 200,000) bounds how many components are read.
Entries are per licence, not per component: how many components carry it, across how many assets, and how many of those are direct dependencies. If truncated is true, the estate had more components than max_components and the counts are a lower bound. Raise the bound or narrow to one asset rather than reading them as the whole answer. For the licences of individual components, read the asset’s components (GET /api/v1/assets/{id}/components), each of which carries a licenses list.

2. Licence categories

3. Check a candidate policy

Pass a policy on the request to see what it would flag, before committing to anything. Nothing is stored:
  • allow_categories: the categories that pass. Omitted, every category passes.
  • allow: individual licences that pass even outside those categories.
  • deny: individual licences that fail whatever their category. Licence names match case-insensitively.
policy.violations lists each component in breach with its asset, package URL, licence, category, whether it is a direct dependency, and why. A category that does not exist is refused with 400 and the list of valid ones, rather than silently allowing or blocking everything.

4. Export an SBOM with the licences in it

Auditors and procurement teams usually want a standard document. Export one asset’s inventory, licences included, as CycloneDX 1.5 (the default) or SPDX 2.3:
The format is chosen by format, not by the Accept header. See API reference → Bills of materials.