---
type: api
title: Get an inputs template
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-get-fleet-epm-templates-pkgname-pkgversion-inputs
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-get-fleet-epm-templates-pkgname-pkgversion-inputs
products:
  - Kibana
---

# Get an inputs template

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

## Paths

- `GET` `/api/fleet/epm/templates/{pkgName}/{pkgVersion}/inputs`
- `GET` `/s/{space_id}/api/fleet/epm/templates/{pkgName}/{pkgVersion}/inputs`

#### Path parameters

- `pkgName` (string) — required
  Package name
- `pkgVersion` (string) — required
  Package version

## Description

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

Get an inputs template for a package, used to pre-populate package policy forms.

## Required authorization

- Privileges: `integrations-read` or `fleet-setup` or `fleet-all`

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Query string parameters

- `format` (enum · default: json) — optional
  Output format for the inputs template: json, yml, or yaml
  Values: `json`, `yml`, `yaml`
- `prerelease` (boolean) — optional
  When true, allow prerelease versions
- `ignoreUnverified` (boolean) — optional
  When true, return inputs even if the package signature cannot be verified

## Responses

#### `200`

Successful response

`application/json`

Any of:
- **string**
- **get_inputs_response**
  - `connectors` (map string to object)
  - `exporters` (map string to object)
  - `extensions` (map string to object)
  - `inputs` (object[] · max items: 10000)
    - `id` (string)
    - `streams` (object[] · max items: 10000)
      - `data_stream` (object)
        - `dataset` (string)
        - `type` (string)
      - `id` (string)
    - `type` (string)
  - `processors` (map string to object)
  - `receivers` (map string to object)
  - `service` (object)
    - `extensions` (string[] · max items: 1000)
    - `pipelines` (map string to object)
      Map values (object)
      - `exporters` (string[] · max items: 1000)
      - `processors` (string[] · max items: 1000)
      - `receivers` (string[] · max items: 1000)
#### `400`

Bad Request

`application/json`

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

#### Console

```console
GET kbn:/api/fleet/epm/templates/PKG_NAME/PKG_VERSION/inputs
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/epm/templates/${PKG_NAME}/${PKG_VERSION}/inputs" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get inputs template

Inputs template for a package

```json
{
  "inputs": [
    {
      "description": "Collect logs from log files",
      "title": "Collect logs from files",
      "type": "logfile",
      "vars": [
        {
          "name": "paths",
          "required": true,
          "title": "Paths",
          "type": "text"
        }
      ]
    }
  ]
}
```

#### Generic error response

Example of a generic error response

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

