---
type: api
title: Bulk get assets
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-bulk-get-assets
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-bulk-get-assets
products:
  - Kibana
---

# Bulk get assets

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

## Paths

- `POST` `/api/fleet/epm/bulk_assets`
- `POST` `/s/{space_id}/api/fleet/epm/bulk_assets`

## Description

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

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

## Request body

`application/json`

- `assetIds` (object[]) — required
  list of items necessary to fetch assets
  - `id` (string) — optional
  - `type` (string) — optional

## Responses

#### `200`

OK

`application/json`

- `items` (object[])
  - `appLink` (string)
  - `attributes` (object)
    - `description` (string)
    - `title` (string)
  - `id` (string)
  - `type` (union oneOf)
    Values: `dashboard`, `visualization`, `search`, `index_pattern`, `map`, `lens`, `security_rule`, `csp_rule_template`, `ml_module`, `tag`, `osquery_pack_asset`, `osquery_saved_query`, `index`, `component_template`, `ingest_pipeline`, `index_template`, `ilm_policy`, `transform`, `data_stream_ilm_policy`, `ml_model`
  - `updatedAt` (string)
#### `400`

Generic Error

`application/json`

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

#### Console

```console
POST kbn:/api/fleet/epm/bulk_assets
{
  "assetIds": [
    {}
  ]
}
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/fleet/epm/bulk_assets" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "assetIds": [
      {}
    ]
  }'
```

