> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsiam-api/aspm-cicd-and-application-security/sbom-management.md).

# SBOM Management

APIs for managing SBOMs

## Get an SBOM for the specified repository

> Get an SBOM (Software Bill of Materials) report for the specified repository.\
> \
> Only the following combinations are supported:\
> \
> \`format\`: \`cyclonedx\`\
> \`fileType\`: \`json\` or \`xml\`\
> \`version: \`1.4\` or \`1.5\` or \`1.6\`\
> \
> \`format\`: \`spdx\`\
> \`fileType\`: \`json\` or \`txt\`\
> \`version: \`2.3\`\
> \
> \*\*Required license:\*\* Cortex XSIAM Premium. In Cortex XSIAM Enterprise and Cortex NG SIEM, requires the Cortex Cloud Posture Management add-on. Not supported in XSIAM Enterprise Plus.

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XSIAM 3.6"},"tags":[{"name":"SBOM management","description":"APIs for managing SBOMs"}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/public_api/appsec/v1/sbom/repository/{repoId}":{"get":{"tags":["SBOM management"],"summary":"Get an SBOM for the specified repository","description":"Get an SBOM (Software Bill of Materials) report for the specified repository.\n\nOnly the following combinations are supported:\n\n`format`: `cyclonedx`\n`fileType`: `json` or `xml`\n`version: `1.4` or `1.5` or `1.6`\n\n`format`: `spdx`\n`fileType`: `json` or `txt`\n`version: `2.3`\n\n**Required license:** Cortex XSIAM Premium. In Cortex XSIAM Enterprise and Cortex NG SIEM, requires the Cortex Cloud Posture Management add-on. Not supported in XSIAM Enterprise Plus.","operationId":"GetSBOMReport","parameters":[{"schema":{"type":"string"},"in":"header","name":"Authorization","description":"{api_key}","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"{api_key_id}","required":true},{"in":"path","name":"repoId","required":true,"schema":{"type":"string"}},{"in":"query","name":"branchName","required":true,"schema":{"type":"string"},"description":"Branch name for which you want to export the SBOM."},{"in":"query","name":"fileType","required":true,"schema":{"type":"string","enum":["json","xml","txt"],"default":"xml"},"description":"Define the file type you want to export. For cyclonedx, either json or xml. For spdx, either json or txt."},{"in":"query","name":"version","required":true,"schema":{"type":"string","enum":["1.4","1.5","1.6","2.3"],"default":"1.6"},"description":"For cyclonedx, version can be 1.4, 1.5, or 1.6. For spdx, version is 2.3."},{"schema":{"type":"string","enum":["cyclonedx","spdx"],"default":"cyclonedx"},"in":"query","name":"format","required":true,"description":"Define the SBOM format."}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}}}}}
```

## Get all SBOMs for the specified organization

> Get SBOM (Software Bill of Materials) reports for all repositories in the specified organization.\
> \
> \*\*Required license:\*\* Cortex XSIAM Premium. In Cortex XSIAM Enterprise and Cortex NG SIEM, requires the Cortex Cloud Posture Management add-on. Not supported in XSIAM Enterprise Plus.

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XSIAM 3.6"},"tags":[{"name":"SBOM management","description":"APIs for managing SBOMs"}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/public_api/appsec/v1/sbom/organization/{orgName}":{"get":{"tags":["SBOM management"],"summary":"Get all SBOMs for the specified organization","description":"Get SBOM (Software Bill of Materials) reports for all repositories in the specified organization.\n\n**Required license:** Cortex XSIAM Premium. In Cortex XSIAM Enterprise and Cortex NG SIEM, requires the Cortex Cloud Posture Management add-on. Not supported in XSIAM Enterprise Plus.","operationId":"GetOrgSBOMReport","parameters":[{"schema":{"type":"string"},"in":"header","name":"Authorization","description":"{api_key}","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"{api_key_id}","required":true},{"name":"fileType","in":"query","description":"Define the file type you want to export. For cyclonedx, either json or xml. For spdx, either json or txt.","required":true,"schema":{"type":"string","enum":["json","xml","txt"],"default":"xml"}},{"name":"version","in":"query","description":"For cyclonedx, version can be 1.4, 1.5, or 1.6. For spdx, version is 2.3.","required":true,"schema":{"type":"string","enum":["1.4","1.5","1.6","2.3"],"default":"1.6"}},{"name":"orgName","in":"path","required":true,"schema":{"type":"string"}},{"schema":{"type":"string","enum":["cyclonedx","spdx"],"default":"cyclonedx"},"in":"query","name":"format","description":"Define the SBOM format.","required":true}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsiam-api/aspm-cicd-and-application-security/sbom-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
