---
title: "Health check endpoint"
url: "https://dev.kong-air.com/apis/kong-air-flights-0/versions/1dcd5a8f-ea85-46be-942c-c4cc0059aa48/operations/flights-health-check"
---

> Full API specification: https://dev.kong-air.com/apis/kong-air-flights-0/versions/1dcd5a8f-ea85-46be-942c-c4cc0059aa48.md

# Health check endpoint

`GET` `/health`

Operation ID: `flights-health-check`

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 Service
  version: 0.1.0
servers:
  - description: KongAir API Server
    url: https://api.kong-air.com
paths:
  /health:
    get:
      description: Endpoint that returns the service health status.
      operationId: flights-health-check
      responses:
        "200":
          content:
            application/json:
              schema:
                properties:
                  status:
                    example: OK
                    type: string
                type: object
          description: Service is healthy
          headers:
            hostname:
              description: The hostname of the machine fulfilling the request.
              schema:
                type: string
        "500":
          content:
            application/json:
              schema:
                properties:
                  status:
                    example: unhealthy
                    type: string
                type: object
          description: Service is unhealthy
      summary: Health check endpoint
```
