Get cases by alert APIedit

This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

Returns the cases associated with a specific alert.

For the most up-to-date API details, refer to the open API specification.

Requestedit

GET <kibana host>:<port>/api/cases/alerts/<alert_id>

GET <kibana host>:<port>/s/<space_id>/api/cases/alerts/<alert_id>

Prerequisitesedit

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.

Path parametersedit

<alert_id>
(Required, string) The alert identifier.
<space_id>
(Optional, string) An identifier for the space. If it is not specified, the default space is used.

Query parametersedit

owner
(Optional, string or array of strings) A filter to limit the retrieved cases to a specific set of applications. Valid values are: cases, observability, and securitySolution. If this parameter is omitted, the response contains all cases that the user has access to read.

Response codesedit

200
Indicates a successful call.

Examplesedit

Return cases associated with the alert ID 09f0c261e39e36351d75995b78bb83673774d1bc2cca9df2d15f0e5c0a99a540:

GET api/cases/alerts/09f0c261e39e36351d75995b78bb83673774d1bc2cca9df2d15f0e5c0a99a540

The API returns a JSON array containing the identifier and title of the cases. For example:

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