> 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/package-explorer.md).

# Package Explorer

APIs for retrieving structured information for a specific package version.

## Get Package Version Details

> Retrieves structured information for a specific package version. Use the optional manager query parameter to filter results by package manager ecosystem. This read-only endpoint does not provide exposure details, remediation actions, or governance execution.\
> \
> \*\*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.<br>

```json
{"openapi":"3.0.0","info":{"title":"ASPM, CICD and Application Security APIs","version":"Cortex XSIAM 3.6"},"tags":[{"name":"Package Explorer","description":"APIs for retrieving structured information for a specific package version."}],"servers":[{"url":"https://api-yourfqdn"}],"security":[],"paths":{"/get /public_api/appsec/v1/package_explorer/packages/{name}/versions/{version}":{"get":{"summary":"Get Package Version Details","tags":["Package Explorer"],"operationId":"GetPackages","description":"Retrieves structured information for a specific package version. Use the optional manager query parameter to filter results by package manager ecosystem. This read-only endpoint does not provide exposure details, remediation actions, or governance execution.\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.\n","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},{"schema":{"type":"string"},"in":"query","name":"manager","description":"Optional. Filters the results to a specific package manager ecosystem (for example, NPM, YARN, MAVEN, or GRADLE). When omitted, results are returned for all ecosystems in which the package version was detected.","required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageExplorerResponse"}}}}}}}},"components":{"schemas":{"PackageExplorerResponse":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the package as it appears in the package manager registry."},"version":{"type":"string","description":"The version of the package."},"package_type":{"allOf":[{"$ref":"#/components/schemas/PackageType"}],"nullable":true},"ecosystem":{"type":"string","description":"The package manager ecosystem where this package is used (for example, NPM, YARN, MAVEN, or GRADLE). Each result represents an ecosystem where the package version was detected.","nullable":true},"operational_risk":{"type":"string","description":"The assessed operational risk level of the package version (for example, LOW, MEDIUM, or HIGH). Returns `null` if no assessment is available.","nullable":true},"used_in":{"allOf":[{"$ref":"#/components/schemas/UsedInCounts"}],"nullable":true,"description":"Usage counts showing where this package version is used, including code repositories, runtime environments, and deployed artifacts within the ecosystem."},"vulnerabilities":{"allOf":[{"$ref":"#/components/schemas/VulnerabilityCounts"}],"nullable":true,"description":"Number of known vulnerabilities for this package version by severity level.\n"}}},"PackageType":{"type":"string","enum":["OSS","OS"],"description":"Type of the package. OSS indicates an open-source software package; OS indicates an operating system package."},"UsedInCounts":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"number","format":"double","description":"Number of code repositories that include this package.","nullable":true},"runtime":{"type":"number","format":"double","description":"Number of runtime environments where this package is detected.","nullable":true},"deploy":{"type":"number","format":"double","description":"Number of deployed artifacts or images that include this package.","nullable":true}}},"VulnerabilityCounts":{"type":"object","additionalProperties":false,"properties":{"critical":{"type":"number","format":"double","description":"Number of critical-severity vulnerabilities associated with this package version.","nullable":true},"high":{"type":"number","format":"double","description":"Number of high-severity vulnerabilities associated with this package version.","nullable":true},"medium":{"type":"number","format":"double","description":"Number of medium-severity vulnerabilities associated with this package version.","nullable":true},"low":{"type":"number","format":"double","description":"Number of low-severity vulnerabilities associated with this package version.","nullable":true},"info":{"type":"number","format":"double","description":"Number of informational vulnerabilities associated with this package version.","nullable":true}}}}}}
```


---

# 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/package-explorer.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.
