---
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/4493/api/doc/kibana/v8/operation/operation-endpointgetactionlog
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-endpointgetactionlog
products:
  - Kibana
---

# Get an action request log

deprecated

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

## Paths

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

#### Path parameters

- `agent_id` (string) — required

## Description

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

Get an action request log for the specified agent ID.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## 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}"
```

