---
type: api
title: Get the latest output health
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-fleet-outputs-outputid-health
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v9/operation/operation-get-fleet-outputs-outputid-health
products:
  - Kibana
---

# Get the latest output health

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

## Paths

- `GET` `/api/fleet/outputs/{outputId}/health`
- `GET` `/s/{space_id}/api/fleet/outputs/{outputId}/health`

#### Path parameters

- `outputId` (string) — required
  The ID of the output

## Description

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

Get the latest health status of an output by ID.

## Required authorization

- Privileges: `fleet-settings-read`

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

## Responses

#### `200`

Successful response

`application/json`

- `message` (string)
  long message if unhealthy
- `state` (string)
  state of output, HEALTHY or DEGRADED
- `timestamp` (string)
  timestamp of reported state
#### `400`

Bad Request

`application/json`

- `attributes` (object)
- `error` (string)
- `errorType` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
GET kbn:/api/fleet/outputs/OUTPUT_ID/health
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/outputs/${OUTPUT_ID}/health" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Get output health

The latest health status of a Fleet output

```json
{
  "message": "",
  "state": "HEALTHY",
  "timestamp": "2024-01-15T10:00:00.000Z"
}
```

#### Generic error response

Example of a generic error response

```json
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}
```

