---
type: api
title: Get an agent binary download source
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-fleet-agent-download-sources-sourceid
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-fleet-agent-download-sources-sourceid
products:
  - Kibana
---

# Get an agent binary download source

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

## Paths

- `GET` `/api/fleet/agent_download_sources/{sourceId}`
- `GET` `/s/{space_id}/api/fleet/agent_download_sources/{sourceId}`

#### Path parameters

- `sourceId` (string) — required
  The ID of the download source

## Description

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

Get an agent binary download source by ID.

## Required authorization

- Privileges: `fleet-agent-policies-read` or `fleet-settings-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`

- `item` (object)
  - `auth` (object) — nullable
    - `api_key` (string)
    - `headers` (object[] · max items: 100)
      - `key` (string)
      - `value` (string)
    - `password` (string)
    - `username` (string)
  - `host` (string · format: uri)
  - `id` (string)
  - `is_default` (boolean · default: false)
  - `name` (string)
  - `proxy_id` (string) — nullable
    The ID of the proxy to use for this download source. See the proxies API for more information.
  - `secrets` (object)
    - `auth` (object)
      - `api_key` (union anyOf)
        - **{ id }**
          - `id` (string)
        - **string**
      - `password` (union anyOf)
        - **{ id }**
          - `id` (string)
        - **string**
    - `ssl` (object)
      - `key` (union anyOf)
        - **{ id }**
          - `id` (string)
        - **string**
  - `ssl` (object)
    - `certificate` (string)
    - `certificate_authorities` (string[] · max items: 10)
    - `key` (string)
#### `400`

Bad Request

`application/json`

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

Not Found

`application/json`

## Code examples

#### Console

```console
GET kbn:/api/fleet/agent_download_sources/SOURCE_ID
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/agent_download_sources/${SOURCE_ID}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get download source

An agent binary download source

```json
{
  "item": {
    "host": "https://artifacts.elastic.co/downloads/",
    "id": "download-source-id-1",
    "is_default": true,
    "name": "Elastic Artifacts"
  }
}
```

#### Generic error response

Example of a generic error response

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

#### Not found

No download source was found with the given ID

```json
{
  "error": "Not Found",
  "message": "Agent binary source download-source-id-1 not found",
  "statusCode": 404
}
```

