> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gatelit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Health Check

> Gateway liveness check. No authentication required.

`GET /health`

Returns 200 when the gateway is running. No authentication required.

## Response

```json theme={null}
{
  "ok": true,
  "requestId": "req_abc123"
}
```

## Example

```bash theme={null}
curl https://gateway.gatelit.dev/health
# → {"ok":true,"requestId":"req_abc123"}
```


## OpenAPI

````yaml get /health
openapi: 3.1.0
info:
  title: Gatelit Gateway API
  version: '1.0'
  description: |
    The Gatelit gateway is a single HTTP endpoint that routes AI requests to any
    supported provider. It handles authentication, provider key resolution,
    request transformation, stream normalisation, spend tracking, and logging.

    All requests must include an `Authorization` header. Three auth schemes are
    supported — choose based on your deployment scenario.
servers:
  - url: https://gateway.yourapp.com
    description: Your gateway URL
security: []
paths:
  /health:
    get:
      summary: Health check
      description: Returns 200 when the gateway is running. No authentication required.
      operationId: health
      responses:
        '200':
          description: Gateway is healthy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
              example:
                ok: true
                requestId: req_abc123
      security: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: |
            curl https://gateway.yourapp.com/health
            # → {"ok":true,"requestId":"req_abc123"}
components:
  schemas:
    HealthResponse:
      type: object
      properties:
        ok:
          type: boolean
          example: true
        requestId:
          type: string

````