# Health check

Check whether the API process is responding. This lightweight endpoint does not require authentication and does not prove that every upstream dependency is ready.

`GET /health`

## Example request

```bash
curl --request GET \
  --url https://api.hoplite.sh/health
```

## 200 response

The API process is healthy.

Content type: `application/json`. Response type: `Health`.

| Field | Type | Required | Constraints | Description |
| --- | --- | --- | --- | --- |
| `ok` | `boolean` | Yes | constant true | — |
| `service` | `string` | Yes | constant "hoplite-api" | — |
| `version` | `string \| null` | Yes | — | Deployed Git commit SHA when configured. |

```json
{
  "ok": true,
  "service": "hoplite-api",
  "version": "a1b2c3d"
}
```

## Response headers

| Header | Type | Statuses | Description |

| --- | --- | --- | --- |

| `x-request-id` | `string` | `200` | Request correlation ID. |

## Status codes

- `200` — The API process is healthy.