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

# Get file information

Authentication: required

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

## Paths

- `GET` `/api/endpoint/action/{action_id}/file/{file_id}`
- `GET` `/s/{space_id}/api/endpoint/action/{action_id}/file/{file_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.
- `action_id` (string) — required
- `file_id` (string) — required

## Description

Get information for the specified file using the file ID.
> info
> To construct a `file_id`, combine the `action_id` and `agent_id` values using a dot separator:
> {`file_id`} = {`action_id`}`.`{`agent_id`}

## Response

OK

`application/json`

Type: `object`

## Code examples

#### Console

```console
GET kbn:/api/endpoint/action/ACTION_ID/file/FILE_ID
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/endpoint/action/${ACTION_ID}/file/${FILE_ID}" \
  -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
{}
```

