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

# Get response actions status

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

## Paths

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

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

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

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Query string parameters

- `agent_ids` (union oneOf · min length: 1) — required
  A list of agent IDs to get the action status for.
  Example: `["agent-id-1","agent-id-2"]`
  One of: `string[]` or `string`

## Response

Indicates a successful call.

`application/json`

- `data` (object[])
  One pending-actions summary entry per requested agent.
  - `agent_id` (string · max length: 256)
    Agent ID
  - `pending_actions` (union oneOf)
    - **{ execute, get-file, isolate, … }**
      - `execute` (integer)
        Number of pending actions of this type.
      - `get-file` (integer)
        Number of pending actions of this type.
      - `isolate` (integer)
        Number of pending actions of this type.
      - `kill-process` (integer)
        Number of pending actions of this type.
      - `running-processes` (integer)
        Number of pending actions of this type.
      - `scan` (integer)
        Number of pending actions of this type.
      - `suspend-process` (integer)
        Number of pending actions of this type.
      - `unisolate` (integer)
        Number of pending actions of this type.
      - `upload` (integer)
        Number of pending actions of this type.
    - **object**
## Code examples

#### Console

```console
GET kbn:/api/endpoint/action_status?agent_ids=agent-id-1&agent_ids=agent-id-2
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/endpoint/action_status?agent_ids=agent-id-1&agent_ids=agent-id-2" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Pending response actions per agent

```json
{
  "data": [
    {
      "agent_id": "afdc366c-e2e0-4cdb-ae1d-94575bd2d8e0",
      "pending_actions": {
        "execute": 0,
        "get-file": 0,
        "isolate": 0,
        "kill-process": 1,
        "running-processes": 0,
        "scan": 0,
        "unisolate": 0,
        "upload": 0
      }
    }
  ]
}
```

