Spaces method and path for this operation:
get /s/{space_id}/api/cases/{caseId}
Refer to Spaces for more information.
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 parameters
-
The identifier for the case. To retrieve case IDs, use the find cases API. All non-ASCII characters must be URL encoded.
GET
/api/cases/{caseId}
curl \
--request GET 'https://localhost:5601/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414' \
--header "Authorization: $API_KEY"
Response examples (200)
Retrieves information about a case including its comments.
{
"assignees": [
{
"uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0"
}
],
"category": null,
"closed_at": null,
"closed_by": null,
"comments": [
{
"comment": "A new comment",
"created_at": "2023-10-13T15:40:32.335Z",
"created_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"id": "2134c1d0-02c2-11ed-85f2-4f7c222ca2fa",
"owner": "cases",
"pushed_at": null,
"pushed_by": null,
"type": "user",
"updated_at": null,
"updated_by": null,
"version": "WzM3LDFd"
}
],
"connector": {
"fields": null,
"id": "none",
"name": "none",
"type": ".none"
},
"created_at": "2023-10-13T15:33:50.604Z",
"created_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"customFields": [
{
"key": "d312efda-ec2b-42ec-9e2c-84981795c581",
"type": "text",
"value": "My field value"
},
{
"key": "fcc6840d-eb14-42df-8aaf-232201a705ec",
"type": "toggle",
"value": null
}
],
"description": "A case description",
"duration": null,
"external_service": null,
"id": "31cdada0-02c1-11ed-85f2-4f7c222ca2fa",
"owner": "cases",
"settings": {
"syncAlerts": true
},
"severity": "low",
"status": "open",
"tags": [
"tag 1"
],
"title": "Case title 1",
"totalAlerts": 0,
"totalComment": 1,
"updated_at": "2023-10-13T15:40:32.335Z",
"updated_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"version": "WzM2LDFd"
}
{
"assignees": [
{
"uid": "u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0"
}
],
"category": null,
"closed_at": null,
"closed_by": null,
"comments": [
{
"alertId": [
"a6e12ac4-7bce-457b-84f6-d7ce8deb8446"
],
"created_at": "2023-11-06T19:29:38.424Z",
"created_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"id": "59d438d0-79a9-4864-8d4b-e63adacebf6e",
"index": [
".internal.alerts-observability.logs.alerts-default-000001"
],
"owner": "observability",
"pushed_at": null,
"pushed_by": null,
"rule": {
"id": "03e4eb87-62ca-4e5d-9570-3d7625e9669d",
"name": "Observability rule"
},
"type": "alert",
"updated_at": null,
"updated_by": null,
"version": "WzY3LDJd"
},
{
"comment": "The first comment.",
"created_at": "2023-11-06T19:29:57.812Z",
"created_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"id": "d99342d3-3aa3-4b80-90ec-a702607604f5",
"owner": "observability",
"pushed_at": null,
"pushed_by": null,
"type": "user",
"updated_at": null,
"updated_by": null,
"version": "WzcyLDJd"
}
],
"connector": {
"fields": null,
"id": "none",
"name": "none",
"type": ".none"
},
"created_at": "2023-11-06T19:29:04.086Z",
"created_by": {
"email": null,
"full_name": null,
"username": "elastic"
},
"customFields": [],
"description": "An Observability case description.",
"duration": null,
"external_service": null,
"id": "c3ff7550-def1-4e90-b6bc-c9969a4a09b1",
"owner": "observability",
"settings": {
"syncAlerts": false
},
"severity": "low",
"status": "in-progress",
"tags": [
"observability",
"tag 1"
],
"title": "Observability case title 1",
"totalAlerts": 1,
"totalComment": 1,
"updated_at": "2023-11-06T19:47:55.662Z",
"updated_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"version": "WzI0NywyXQ=="
}