Skip to main content

Health Check

GET /api/v1/health

Returns the health status of the Tracera backend and its dependencies.

Request

curl http://localhost:8080/api/v1/health

Response

{
  "status": "ok",
  "timescaledb": "up",
  "redis": "up"
}

Fields

FieldTypeValuesDescription
statusstringokAPI server status — always ok if the server is responding
timescaledbstringup / downTimescaleDB connection status
redisstringup / downRedis connection status

Notes

  • This endpoint is used by Docker health checks (every 10 seconds)
  • Returns 503 Service Unavailable if any dependency is down
  • No authentication required
  • Used by load balancers to determine backend readiness