Skip to main content

Upload a software bill of materials

POST 

/api/ingest/sbom

Push an inventory for one subject. The body is the raw document. Supported formats: CycloneDX 1.4 to 1.6 JSON, SPDX 2.3 JSON, requirements.txt and package-lock.json (v2 and v3). Gzip is accepted with Content-Encoding: gzip.

Limits: 20 MB (compressed and decompressed) and 30 documents per minute per token.

The call is idempotent by subject and SHA-256: sending the same snapshot again answers 200 with deduplicated: true and changes nothing. The token must be bound to a source of kind imported, sensor or infrastructure, otherwise you get 403 token_not_allowed.

Errors carry a stable machine-readable detail.code such as too_large, rate_limited, subject_not_found or invalid_subject.

Request​

Responses​

Stored, or already stored (deduplicated: true).