---
title: "Generate and retrieve the SBOM document"
method: GET
path: "/projects/{projectId}/generated-documents/sbom"
tags: ["SBOM"]
---

# Generate and retrieve the SBOM document

`GET /projects/{projectId}/generated-documents/sbom`

## Request

- Base URL: `https://app.ketryx.com/api/v1`
- URL: `https://app.ketryx.com/api/v1/projects/{projectId}/generated-documents/sbom`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ketryx/apis/ketryx-api/docs/projects/:projectId/generated-documents/sbom/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `projectId` string, required

## Query parameters

- `versionId` string
- `format` 'xslx' | 'cyclonedx'

## Response `200`

File contents in binary format

## Other responses

- `400`: The request is not valid.
- `401`: The requester is not authenticated.
- `403`: The requester is unauthorized.
- `404`: The resource was not found.

---

[API](https://skmtc.dev/ketryx/apis/ketryx-api.md) - [All operations](https://skmtc.dev/ketryx/apis/ketryx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ketryx/apis/ketryx-api/revisions/a2a484dc35ca?raw)
