Find case comments
Base URL
https://{kibana_url}
Auth
Retrieves a paginated list of comments for a case. 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 with the comments you're seeking.
Expand all
caseId
string
required
The identifier for the case. To retrieve case IDs, use the search cases (_find) API. All non-ASCII characters must be URL encoded.
Example:
9c235210-6834-11ea-a78c-6ffb38a34414
page
integer · default: 1
The page number to return.
perPage
integer · max: 100 · default: 20
The number of items to return. Limited to 100 items.
sortOrder
enum · default: desc
Determines the sort order.
Values:
asc
desc
200
Indicates a successful call.
application/json
Paginated list of user comments for the case.
−
Hide 11 properties
page
integer
required
The current page index.
per_page
integer
required
The number of items per page.
total
integer
required
The total number of comments.
401
Authorization information is missing or invalid.
application/json
Thank you for your feedback.
Base URL
https://{kibana_url}
Examples
Request
Console
1 / 2 languages
‹
›
1
GET kbn:/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/comments/_find
Generated from the API spec
1
2
curl -X GET "${KIBANA_URL}/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/comments/_find" \
-H "Authorization: ApiKey ${API_KEY}"
Generated from the API spec
Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"comments": [
{
"comment": "A new comment",
"created_at": "2023-10-07T19:32:13.104Z",
"created_by": {
"email": "null",
"full_name": "null",
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"id": "8048b460-fe2b-11ec-b15d-779a7c8bbcc3",
"owner": "cases",
"pushed_at": "null",
"pushed_by": "null",
"type": "user",
"updated_at": "null",
"updated_by": "null",
"version": "WzIzLDFd"
}
],
"page": 1,
"per_page": 20,
"total": 1
}
1
2
3
4
5
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}