---
title: "Health check endpoint for Kubernetes"
url: "https://portal.kongair.dev/apis/flights-api/versions/74c7c2b2-fdaf-4ab3-9579-5f636eaa7370/paths/health/get"
---

> Full API specification: https://portal.kongair.dev/apis/flights-api/versions/74c7c2b2-fdaf-4ab3-9579-5f636eaa7370.md

# Health check endpoint for Kubernetes

`GET` `/health`

Endpoint that returns the service health status.

## Responses

- `200` - Service is healthy
- `500` - Service is unhealthy

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Flights API
  version: "1.1"
servers:
  - url: https://api.kongair.dev
    description: KongAir API Dev
paths:
  /health:
    get:
      summary: Health check endpoint for Kubernetes
      description: Endpoint that returns the service health status.
      responses:
        "200":
          description: Service is healthy
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: OK
          headers:
            hostname:
              description: The hostname of the machine fulfilling the request.
              schema:
                type: string
        "500":
          description: Service is unhealthy
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: unhealthy
```
