---
type: api
title: Get an exception list item
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-readexceptionlistitem
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-readexceptionlistitem
products:
  - Kibana
---

# Get an exception list item

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

## Paths

- `GET` `/api/exception_lists/items`
- `GET` `/s/{space_id}/api/exception_lists/items`

## Description

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

Get the details of an exception list item using the `id` or `item_id` field.

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

- `id` (string · format: nonempty · min length: 1) — optional
  Either `id` or `item_id` must be specified
- `item_id` (string · format: nonempty · min length: 1) — optional
  Either `id` or `item_id` must be specified
- `namespace_type` (enum) — optional
  Values: `agnostic`, `single`

## Responses

#### `200`

Successful response

`application/json`

- `_version` (string)
- `comments` (object[])
  - `comment` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `created_at` (string · format: date-time)
  - `created_by` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `id` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `updated_at` (string · format: date-time)
  - `updated_by` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
- `created_at` (string · format: date-time)
- `created_by` (string)
- `description` (string)
- `entries` (union[])
- `expire_time` (string · format: date-time)
- `id` (string · format: nonempty · min length: 1)
  A string that does not contain only whitespace characters
- `item_id` (string · format: nonempty · min length: 1)
  A string that does not contain only whitespace characters
- `list_id` (string · format: nonempty · min length: 1)
  A string that does not contain only whitespace characters
- `meta` (object)
- `name` (string · format: nonempty · min length: 1)
  A string that does not contain only whitespace characters
- `namespace_type` (enum)
  Determines whether the exception container is available in all Kibana spaces or just the space
in which it is created, where:

- `single`: Only available in the Kibana space in which it is created.
- `agnostic`: Available in all Kibana spaces.
  Values: `agnostic`, `single`
- `os_types` (enum[])
  Values: `linux`, `macos`, `windows`
- `tags` (string[] · format: nonempty)
- `tie_breaker_id` (string)
- `type` (enum)
  Values: `simple`
- `updated_at` (string · format: date-time)
- `updated_by` (string)
#### `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`

Exception list item 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
GET kbn:/api/exception_lists/items
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/exception_lists/items" \
  -H "Authorization: ApiKey ${API_KEY}"
```

