---
type: api
title: Get agent uploads
description: Get a list of files uploaded by a specific agent.<br/><br/>[Required authorization] Route required privileges: fleet-agents-read.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-get-fleet-agents-agentid-uploads
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-get-fleet-agents-agentid-uploads
products:
  - Kibana
---

# Get agent uploads

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/fleet/agents/{agentId}/uploads`

#### Path parameters

- `agentId` (string) — required
  The agent ID

## Description

Get a list of files uploaded by a specific agent.

## Required authorization

- Privileges: `fleet-agents-read`

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Responses

#### `200`

Successful response

`application/json`

- `items` (object[] · max items: 10000)
  - `actionId` (string)
  - `createTime` (string)
  - `error` (string)
  - `filePath` (string)
  - `id` (string)
  - `name` (string)
  - `status` (enum)
    Values: `READY`, `AWAITING_UPLOAD`, `DELETED`, `EXPIRED`, `IN_PROGRESS`, `FAILED`
#### `400`

Bad Request

`application/json`

- `attributes` (object)
- `error` (string)
- `errorType` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
GET kbn:/api/fleet/agents/AGENT_ID/uploads
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/agents/${AGENT_ID}/uploads" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get agent uploads

List of files uploaded by the agent

```json
{
  "items": [
    {
      "actionId": "action-id-1",
      "createTime": "2024-01-01T00:00:00.000Z",
      "filePath": "/tmp/diagnostics-2024-01-01.zip",
      "id": "file-id-1",
      "name": "diagnostics-2024-01-01.zip",
      "status": "READY"
    }
  ]
}
```

#### Generic error response

Example of a generic error response

```json
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}
```

