---
type: api
title: "Get cases for an alert"
description: "You must have read privileges for the Cases feature in the Management, Observability, or Security section of the Kibana feature privileges, depending on the owner of the cases you're seeking."
url: https://www.elastic.co/elastic/docs-builder/docs/5051/api/kibana/v8/operation/operation-getcasesbyalertdefaultspace
resource: https://www.elastic.co/elastic/docs-builder/docs/5051/api/kibana/v8/operation/operation-getcasesbyalertdefaultspace
products:
  - Kibana
---

# Get cases for an alert

Authentication: required

Availability: Preview

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

## Paths

- `GET` `/api/cases/alerts/{alertId}`
- `GET` `/s/{space_id}/api/cases/alerts/{alertId}`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
- `alertId` (string) — required
  An identifier for the alert.

## Description

You must have `read` privileges for the **Cases** feature in the **Management**, **Observability**, or **Security** section of the Kibana feature privileges, depending on the owner of the cases you're seeking.

## Query string parameters

- `owner` (union oneOf) — optional
  A filter to limit the response to a specific set of applications. If this parameter is omitted, the response contains information about all the cases that the user has access to read.
  Values: `cases`, `observability`, `securitySolution`

## Responses

#### `200`

Indicates a successful call.

`application/json`

Type: `object[] · max items: 10000`

An array; each item has these fields:

- `id` (string)
  The case identifier.
- `title` (string)
  The case title.
#### `401`

Authorization information is missing or invalid.

`application/json`

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

#### Console

```console
GET kbn:/api/cases/alerts/09f0c261e39e36351d75995b78bb83673774d1bc2cca9df2d15f0e5c0a99a540
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/cases/alerts/09f0c261e39e36351d75995b78bb83673774d1bc2cca9df2d15f0e5c0a99a540" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
[
  {
    "id": "06116b80-e1c3-11ec-be9b-9b1838238ee6",
    "title": "security_case"
  }
]
```

#### 401

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "Unauthorized",
  "message": "string",
  "statusCode": 401
}
```

