---
type: api
title: Get an action request log
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-endpointgetactionlog
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-endpointgetactionlog
products:
  - Kibana
---

# Get an action request log

deprecated

Authentication: required

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

## Paths

- `GET` `/api/endpoint/action_log/{agent_id}`
- `GET` `/s/{space_id}/api/endpoint/action_log/{agent_id}`

#### 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.
- `agent_id` (string) — required

## Description

Get an action request log for the specified agent ID.

## Query string parameters

- `query` (object) — required
  - `end_date` (string) — optional
    An end date in ISO format or Date Math format.
  - `page` (integer · min: 1 · default: 1) — optional
    Page number
  - `page_size` (integer · min: 1 · max: 100 · default: 10) — optional
    Number of items per page
  - `start_date` (string) — optional
    A start date in ISO 8601 format or Date Math format.

## Response

OK

`application/json`

Type: `object`

## Code examples

#### Console

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

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/endpoint/action_log/${AGENT_ID}?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
{}
```

