---
title: "Get an uploaded file"
method: GET
path: "/api/fleet/agents/files/{fileId}/{fileName}"
tags: ["Elastic Agents"]
---

# Get an uploaded file

`GET /api/fleet/agents/files/{fileId}/{fileName}`

**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/agents/files/{fileId}/{fileName}</span></div>

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

Get a file uploaded by an agent.<br/><br/>[Required authorization] Route required privileges: fleet-agents-read.

## Path parameters

- `fileId` string, required
- `fileName` string, required

## Response `200`

Successful response — returns the uploaded file content

- object

## 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)
