---
title: "Get a package file"
method: GET
path: "/api/fleet/epm/packages/{pkgName}/{pkgVersion}/{filePath}"
tags: ["Elastic Package Manager (EPM)"]
---

# Get a package file

`GET /api/fleet/epm/packages/{pkgName}/{pkgVersion}/{filePath}`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/epm/packages/{pkgName}/{pkgVersion}/{filePath}</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Get the contents of a specific file from a package.<br/><br/>[Required authorization] Route required privileges: integrations-read OR fleet-setup OR fleet-all.

## Path parameters

- `pkgName` string, required
- `pkgVersion` string, required
- `filePath` string, required

## Response `200`

Successful response — returns the file content

- unknown

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
