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

# Get exception lists

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

## Paths

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

## Description

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

Get a list of all exception lists.

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

- `filter` (string) — optional
  Filters the returned results according to the value of the specified field.

Uses the `so type.field name:field` value syntax, where `so type` can be:

- `exception-list`: Specify a space-aware exception list.
- `exception-list-agnostic`: Specify an exception list that is shared across spaces.
- `namespace_type` (enum[] · default: [
  "single"
]) — optional
  Determines whether the returned containers are Kibana associated with a Kibana space
or available in all spaces (`agnostic` or `single`)
  Values: `agnostic`, `single`
- `page` (integer · min: 1) — optional
  The page number to return
- `per_page` (integer · min: 1) — optional
  The number of exception lists to return per page
- `sort_field` (string) — optional
  Determines which field is used to sort the results
- `sort_order` (enum) — optional
  Determines the sort order, which can be `desc` or `asc`
  Values: `desc`, `asc`

## Responses

#### `200`

Successful response

`application/json`

- `data` (object[])
  - `_version` (string)
  - `created_at` (string · format: date-time)
  - `created_by` (string)
  - `description` (string)
  - `id` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `immutable` (boolean)
  - `list_id` (string · format: nonempty · min length: 1)
    A string that does not contain only whitespace characters
  - `meta` (object)
  - `name` (string)
  - `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[])
  - `tie_breaker_id` (string)
  - `type` (enum)
    Values: `detection`, `rule_default`, `endpoint`, `endpoint_trusted_apps`, `endpoint_events`, `endpoint_host_isolation_exceptions`, `endpoint_blocklists`
  - `updated_at` (string · format: date-time)
  - `updated_by` (string)
  - `version` (integer · min: 1)
- `page` (integer · min: 1)
- `per_page` (integer · min: 1)
- `total` (integer · min: 0)
#### `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)
#### `500`

Internal server error response

`application/json`

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

#### Console

```console
GET kbn:/api/exception_lists/_find
```

#### curl

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

