---
type: api
title: Get metadata
description: Get host metadata for a specific endpoint.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-getendpointmetadata
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-getendpointmetadata
products:
  - Kibana
---

# Get metadata

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

## Paths

- `GET` `/api/endpoint/metadata/{id}`

#### Path parameters

- `id` (string · max length: 256) — required
  The agent ID of the endpoint.
  Example: `ed518850-681a-4d60-bb98-e22640cae2a8`

## Description

Get host metadata for a specific endpoint.

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

## Response

Indicates a successful call.

`application/json`

Type: `object`

## Code examples

#### Console

```console
GET kbn:/api/endpoint/metadata/ed518850-681a-4d60-bb98-e22640cae2a8
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/endpoint/metadata/ed518850-681a-4d60-bb98-e22640cae2a8" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Host metadata for a specific endpoint

```json
{
  "host_status": "healthy",
  "last_checkin": "2023-07-04T15:48:57.360Z",
  "metadata": {
    "agent": {
      "id": "abb8a826-6812-448c-a571-6d8269b51449",
      "type": "endpoint",
      "version": "8.10.0"
    },
    "Endpoint": {
      "policy": {
        "applied": {
          "id": "d5371dcd-93b7-4627-af88-4084f7d6aa3e",
          "name": "test",
          "status": "success"
        }
      },
      "status": "enrolled"
    },
    "host": {
      "hostname": "WinDev2104Eval",
      "os": {
        "name": "Windows",
        "platform": "windows",
        "version": "20H2"
      }
    }
  }
}
```

