Skip to main content
GET
/
healthz
Health Check
curl --request GET \
  --url https://api.example.com/healthz
{
  "status": "<string>"
}
Returns a simple health status for the Daily Tracker API service. This endpoint is publicly accessible and does not require authentication.

Response

status
string
Returns “OK” when the service is healthy

Example Request

curl https://api.dailytracker.com/healthz

Example Response

OK
This endpoint is commonly used for:
  • Container health checks in Docker and Kubernetes
  • Load balancer health monitoring
  • CI/CD pipeline verification
  • Uptime monitoring services

Use Cases

Docker Health Check

Add this to your Dockerfile:
Dockerfile
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
  CMD curl -f http://localhost:3000/healthz || exit 1

Kubernetes Liveness Probe

Configure in your deployment manifest:
kubernetes.yaml
livenessProbe:
  httpGet:
    path: /healthz
    port: 3000
  initialDelaySeconds: 10
  periodSeconds: 30

Render Configuration

Render automatically uses /healthz as the default health check path. See the Deployment Guide for more details.

Deployment Guide

Configure health checks in production

Environment Variables

Configure server port and other settings

Build docs developers (and LLMs) love