---
type: api
title: "Get case activity"
description: "Returns all user activity for a case. Deprecated in 8.1.0. This API is deprecated and will be removed in a future release; use the find user actions API instead. 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."
url: https://www.elastic.co/elastic/docs-builder/docs/5066/api/kibana/v8/operation/operation-getcaseactivitydefaultspace
resource: https://www.elastic.co/elastic/docs-builder/docs/5066/api/kibana/v8/operation/operation-getcaseactivitydefaultspace
products:
  - Kibana
---

# Get case activity

deprecated

Authentication: required

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/cases/{caseId}/user_actions`
- `GET` `/s/{space_id}/api/cases/{caseId}/user_actions`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
- `caseId` (string) — required
  The identifier for the case. To retrieve case IDs, use the find cases API. All non-ASCII characters must be URL encoded.
  Example: `9c235210-6834-11ea-a78c-6ffb38a34414`

## Description

Returns all user activity for a case. Deprecated in 8.1.0. This API is deprecated and will be removed in a future release; use the find user actions API instead. 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.

## Responses

#### `200`

Indicates a successful call.

`application/json`

Type: `object[]`

An array; each item has these fields:

- `action` (enum)
  Values: `add`, `create`, `delete`, `push_to_service`, `update`
- `action_id` (string)
- `case_id` (string)
- `comment_id` (string) — nullable
- `created_at` (string · format: date-time)
- `created_by` (object)
  - `email` (string) — nullable
  - `full_name` (string) — nullable
  - `profile_uid` (string)
  - `username` (string) — nullable
- `owner` (enum)
  The application that owns the cases: Stack Management, Observability, or Elastic Security.
  Values: `cases`, `observability`, `securitySolution`
- `payload` (union oneOf) — nullable
  - **Cases_payload_alert_comment**
    - `comment` (object)
      - `alertId` (union string | string[])
      - `index` (union string | string[])
      - `owner` (enum)
        The application that owns the cases: Stack Management, Observability, or Elastic Security.
        Values: `cases`, `observability`, `securitySolution`
      - `rule` (object)
        - `id` (string)
          The rule identifier.
        - `name` (string)
          The rule name.
      - `type` (enum)
        Values: `alert`
  - **Cases_payload_assignees**
    - `assignees` (object[] · max items: 10) — nullable
      An array containing users that are assigned to the case.
      - `uid` (string)
        A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
  - **Cases_payload_connector**
    - `connector` (object)
      - `fields` (object) — nullable
        An object containing the connector fields. To create a case without a connector, specify null. If you want to omit any individual field, specify null as its value.
        - `caseId` (string)
          The case identifier for Swimlane connectors.
        - `category` (string)
          The category of the incident for ServiceNow ITSM and ServiceNow SecOps connectors.
        - `destIp` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of destination IPs for ServiceNow SecOps connectors.
        - `impact` (string)
          The effect an incident had on business for ServiceNow ITSM connectors.
        - `issueType` (string)
          The type of issue for Jira connectors.
        - `issueTypes` (string[])
          The type of incident for IBM Resilient connectors.
        - `malwareHash` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of malware hashes for ServiceNow SecOps connectors.
        - `malwareUrl` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of malware URLs for ServiceNow SecOps connectors.
        - `parent` (string)
          The key of the parent issue, when the issue type is sub-task for Jira connectors.
        - `priority` (string)
          The priority of the issue for Jira and ServiceNow SecOps connectors.
        - `severity` (string)
          The severity of the incident for ServiceNow ITSM connectors.
        - `severityCode` (string)
          The severity code of the incident for IBM Resilient connectors.
        - `sourceIp` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of source IPs for ServiceNow SecOps connectors.
        - `subcategory` (string)
          The subcategory of the incident for ServiceNow ITSM connectors.
        - `urgency` (string)
          The extent to which the incident resolution can be delayed for ServiceNow ITSM connectors.
      - `id` (string)
        The identifier for the connector. To create a case without a connector, use `none`.
      - `name` (string)
        The name of the connector. To create a case without a connector, use `none`.
      - `type` (enum)
        The type of connector.
        Values: `.cases-webhook`, `.jira`, `.none`, `.resilient`, `.servicenow`, `.servicenow-sir`, `.swimlane`
  - **Cases_payload_create_case**
    - `assignees` (object[] · max items: 10) — nullable
      An array containing users that are assigned to the case.
      - `uid` (string)
        A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
    - `connector` (object)
      - `fields` (object) — nullable
        An object containing the connector fields. To create a case without a connector, specify null. If you want to omit any individual field, specify null as its value.
        - `caseId` (string)
          The case identifier for Swimlane connectors.
        - `category` (string)
          The category of the incident for ServiceNow ITSM and ServiceNow SecOps connectors.
        - `destIp` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of destination IPs for ServiceNow SecOps connectors.
        - `impact` (string)
          The effect an incident had on business for ServiceNow ITSM connectors.
        - `issueType` (string)
          The type of issue for Jira connectors.
        - `issueTypes` (string[])
          The type of incident for IBM Resilient connectors.
        - `malwareHash` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of malware hashes for ServiceNow SecOps connectors.
        - `malwareUrl` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of malware URLs for ServiceNow SecOps connectors.
        - `parent` (string)
          The key of the parent issue, when the issue type is sub-task for Jira connectors.
        - `priority` (string)
          The priority of the issue for Jira and ServiceNow SecOps connectors.
        - `severity` (string)
          The severity of the incident for ServiceNow ITSM connectors.
        - `severityCode` (string)
          The severity code of the incident for IBM Resilient connectors.
        - `sourceIp` (boolean) — nullable
          Indicates whether cases will send a comma-separated list of source IPs for ServiceNow SecOps connectors.
        - `subcategory` (string)
          The subcategory of the incident for ServiceNow ITSM connectors.
        - `urgency` (string)
          The extent to which the incident resolution can be delayed for ServiceNow ITSM connectors.
      - `id` (string)
        The identifier for the connector. To create a case without a connector, use `none`.
      - `name` (string)
        The name of the connector. To create a case without a connector, use `none`.
      - `type` (enum)
        The type of connector.
        Values: `.cases-webhook`, `.jira`, `.none`, `.resilient`, `.servicenow`, `.servicenow-sir`, `.swimlane`
    - `description` (string)
    - `owner` (enum)
      The application that owns the cases: Stack Management, Observability, or Elastic Security.
      Values: `cases`, `observability`, `securitySolution`
    - `settings` (object)
      An object that contains the case settings.
      - `syncAlerts` (boolean)
        Turns alert syncing on or off.
    - `severity` (enum · default: low)
      The severity of the case.
      Values: `critical`, `high`, `low`, `medium`
    - `status` (enum)
      The status of the case.
      Values: `closed`, `in-progress`, `open`
    - `tags` (string[])
    - `title` (string)
  - **Cases_payload_delete**
    If the `action` is `delete` and the `type` is `delete_case`, the payload is nullable.
  - **Cases_payload_description**
    - `description` (string)
  - **Cases_payload_pushed**
    - `externalService` (object) — nullable
      - `connector_id` (string)
      - `connector_name` (string)
      - `external_id` (string)
      - `external_title` (string)
      - `external_url` (string)
      - `pushed_at` (string · format: date-time)
      - `pushed_by` (object) — nullable
        - `email` (string) — nullable
        - `full_name` (string) — nullable
        - `profile_uid` (string)
        - `username` (string) — nullable
  - **Cases_payload_settings**
    - `settings` (object)
      An object that contains the case settings.
      - `syncAlerts` (boolean)
        Turns alert syncing on or off.
  - **Cases_payload_severity**
    - `severity` (enum · default: low)
      The severity of the case.
      Values: `critical`, `high`, `low`, `medium`
  - **Cases_payload_status**
    - `status` (enum)
      The status of the case.
      Values: `closed`, `in-progress`, `open`
  - **Cases_payload_tags**
    - `tags` (string[])
  - **Cases_payload_title**
    - `title` (string)
  - **Cases_payload_user_comment**
    - `comment` (object)
      - `comment` (string)
      - `owner` (enum)
        The application that owns the cases: Stack Management, Observability, or Elastic Security.
        Values: `cases`, `observability`, `securitySolution`
      - `type` (enum)
        Values: `user`
- `type` (enum)
  The type of action.
  Values: `assignees`, `create_case`, `comment`, `connector`, `delete_case`, `description`, `pushed`, `tags`, `title`, `status`, `settings`, `severity`
#### `401`

Authorization information is missing or invalid.

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (integer)
## Code examples

#### Console

```console
GET kbn:/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/user_actions
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414/user_actions" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
[
  {
    "action": "create",
    "action_id": "22fd3e30-03b1-11ed-920c-974bfa104448",
    "case_id": "22df07d0-03b1-11ed-920c-974bfa104448",
    "comment_id": "578608d0-03b1-11ed-920c-974bfa104448",
    "created_at": "2022-05-13T09:16:17.416Z",
    "created_by": {
      "email": "null",
      "full_name": "null",
      "profile_uid": "u_J41Oh6L9ki-Vo2tOogS8WRTENzhHurGtRc87NgEAlkc_0",
      "username": "elastic"
    },
    "owner": "cases",
    "payload": {
      "comment": {
        "alertId": "1c0b056b-cc9f-4b61-b5c9-cb801abd5e1d",
        "index": ".alerts-observability.logs.alerts-default",
        "owner": "cases",
        "rule": {
          "id": "94d80550-aaf4-11ec-985f-97e55adae8b9",
          "name": "security_rule"
        },
        "type": "alert"
      }
    },
    "type": "create_case"
  }
]
```

#### 401

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "Unauthorized",
  "message": "string",
  "statusCode": 401
}
```

