---
title: "Health check"
method: GET
path: "/health"
tags: ["metadata"]
---

# Health check

`GET /health`

Returns server status, version, uptime, and the combined live status
of the Postgres and Redis dependencies in `db` (formatted as
`<postgres>/<redis>`, each segment `ok` or `down`). Returns 200 when
both respond within 2 seconds; otherwise 503 with the same body shape.

## Response `200`

All dependencies healthy

- HealthResponse
  - `db` string, required — Combined Postgres and Redis liveness, formatted as `<postgres>/<redis>` where each segment is `ok` or `down` (e.g. `ok/ok`, `ok/down`). Probe timeout is 2 seconds; the underlying error is logged server-side, not returned.
  - `status` 'ok' | 'degraded', required
  - `uptime` string, required
  - `version` string, required

## Other responses

- `503` — One or more dependencies unhealthy

---

[API](https://skmtc.net/road511/apis/road511-traffic-api.md) · [All operations](https://skmtc.net/road511/apis/road511-traffic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/road511/road511-traffic-api/versions/39a088b9c155/schema)
