SBOM API
Generate a Software Bill of Materials (SBOM) from a .NET or npm dependency manifest.
This endpoint needs no authentication and is limited to 20 requests per minute per IP address. It processes the manifest you send and does not store it.
POST /api/sbom
Request
curl -X POST https://rorix.io/api/sbom \
-H "Content-Type: application/json" \
-d '{
"content": "<Project Sdk=\"Microsoft.NET.Sdk\">\n <ItemGroup>\n <PackageReference Include=\"Newtonsoft.Json\" Version=\"13.0.3\" />\n <PackageReference Include=\"Serilog\" Version=\"3.1.1\" />\n </ItemGroup>\n</Project>",
"filename": "MyApp.csproj",
"format": "cyclonedx"
}'Parameters
| Parameter | Required | Type | Description |
| --- | --- | --- | --- |
| content | Yes | string | Contents of the project file |
| filename | No | string | Name of the file, used to choose the parser. Defaults to project.csproj; send the real name for package.json, lockfiles, or packages.lock.json. |
| format | No | string | SBOM format: cyclonedx (default) or spdx |
For Node.js projects, send package-lock.json or npm-shrinkwrap.json to capture exact direct dependency versions. The generated components use npm package URLs; scoped packages are encoded according to the purl specification.
Response
The response body contains the generated SBOM document in the requested format.
CycloneDX responses are returned as JSON with Content-Type: application/json and include:
- BOM metadata (timestamp and tool information)
- Component list with names, versions, purls, and licenses
SPDX responses are returned as JSON with Content-Type: application/json and include:
- Document creation information
- Package list with download locations and licenses
- External references
See the SBOM Formats page for a detailed comparison of the two formats.