---
type: api
title: Export list items
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-exportlistitems
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-exportlistitems
products:
  - Kibana
---

# Export list items

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

## Paths

- `POST` `/api/lists/items/_export`
- `POST` `/s/{space_id}/api/lists/items/_export`

## Description

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

Export list item values from the specified list.

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

## Query string parameters

- `list_id` (string · format: nonempty · min length: 1) — required
  List's id to export

## Responses

#### `200`

Successful response

`application/ndjson`

Type: `string · format: binary`

#### `400`

Invalid input data response

`application/json`

One of:
- **{ error, statusCode }**
  - `error` (string)
  - `message` (string)
  - `statusCode` (integer)
- **{ status_code }**
  - `message` (string)
  - `status_code` (integer)
#### `401`

Unsuccessful authentication response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
#### `403`

Not enough privileges response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
#### `404`

List not found response

`application/json`

- `message` (string)
- `status_code` (integer)
#### `500`

Internal server error response

`application/json`

- `message` (string)
- `status_code` (integer)
## Code examples

#### Console

```console
POST kbn:/api/lists/items/_export?list_id=LIST_ID
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/lists/items/_export?list_id=${LIST_ID}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

