---
type: api
title: Get response actions status
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-endpointgetactionsstatus
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-endpointgetactionsstatus
products:
  - Kibana
---

# Get response actions status

Authentication: required

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

## Paths

- `GET` `/api/endpoint/action_status`
- `GET` `/s/{space_id}/api/endpoint/action_status`

#### 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.

## Description

Get the status of response actions for the specified agent IDs.

## Query string parameters

- `query` (object) — required
  - `agent_ids` (union oneOf · min length: 1) — optional
    A list of agent IDs. Max of 50.
    One of: `string[]` or `string`

## Response

OK

`application/json`

- `body` (object)
  - `data` (object)
    - `agent_id` (string)
      Agent ID
    - `pending_actions` (union oneOf)
      - **{ execute, get-file, isolate, … }**
        - `execute` (integer)
        - `get-file` (integer)
        - `isolate` (integer)
        - `kill-process` (integer)
        - `running-processes` (integer)
        - `scan` (integer)
        - `suspend-process` (integer)
        - `unisolate` (integer)
        - `upload` (integer)
      - **object**
## Code examples

#### Console

```console
GET kbn:/api/endpoint/action_status?query=QUERY
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/endpoint/action_status?query=${QUERY}" \
  -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
{
  "body": {
    "data": {
      "agent_id": "string",
      "pending_actions": {
        "execute": 0,
        "get-file": 0,
        "isolate": 0,
        "kill-process": 0,
        "running-processes": 0,
        "scan": 0,
        "suspend-process": 0,
        "unisolate": 0,
        "upload": 0
      }
    }
  }
}
```

