Get case APIedit

Returns information about a case.

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


GET <kibana host>:<port>/api/cases/<case ID>

GET <kibana host>:<port>/s/<space_id>/api/cases/<case ID>


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 case you’re seeking.

Path parametersedit

(Required, string) An identifier for the case to retrieve. Use Find cases to retrieve case IDs.
(Optional, string) An identifier for the space. If it is not specified, the default space is used.

Query parametersedit

(Optional, boolean) Determines whether case comments are returned. Defaults to true. [8.1.0] Deprecated in 8.1.0. The includeComments query parameter is deprecated and will be removed in a future release.

Response codesedit

Indicates a successful call.


Returns case ID 31cdada0-02c1-11ed-85f2-4f7c222ca2fa:

GET api/cases/31cdada0-02c1-11ed-85f2-4f7c222ca2fa

The API returns a JSON object with the retrieved case. For example:

    "comment":"A new comment",
  "title":"Case title 1",
  "tags":["tag 1"],
  "description":"A case description",

Duration represents the elapsed time from the creation of the case to its closure (in seconds). If the case has not been closed, the duration is set to null. If the case was closed after less than half a second, the duration is rounded down to zero.