Spaces method and path for this operation:
Refer to Spaces for more information.
Returns a paginated list of attachments for a case, optionally filtered by type. Attachments that you do not have privileges to read are not returned. 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.
Path parameters
-
The identifier for the case. To retrieve case IDs, use the search cases (
_find)API. All non-ASCII characters must be URL encoded.
Query parameters
-
Filters the returned attachments by one or more attachment types, such as
commentorsecurity.alert. To filter by multiple types, repeat the parameter. Limited to 20 types. -
The page number to return.
Default value is
1. -
The number of items to return. Limited to 100 items.
Maximum value is
100. Default value is20. -
Sorts attachments by creation date:
asc(oldest first) ordesc(newest first).Values are
ascordesc. Default value isasc.
curl \
--request GET 'https://localhost:5601/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/attachments' \
--header "Authorization: $API_KEY"
{
"data": [
{
"created_at": "2026-09-30T19:32:13.104Z",
"created_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"data": {
"content": "A new comment."
},
"id": "8048b460-fe2b-11ec-b15d-779a7c8bbcc3",
"owner": "cases",
"pushed_at": null,
"pushed_by": null,
"type": "comment",
"updated_at": null,
"updated_by": null,
"version": "WzIzLDFd"
}
],
"page": 1,
"per_page": 20,
"total": 1
}
{
"error": "Bad Request",
"message": "[request query]: The provided perPage value is too high. The maximum allowed perPage value is 100.",
"statusCode": 400
}
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}