The Health Check API provides a simple endpoint to verify that your InsForge backend is running and accepting requests. This endpoint does not require authentication and is designed for monitoring tools, load balancers, and health check scripts.
Health Check
Check if the API is running and healthy. This endpoint returns a simple status response and is ideal for uptime monitoring and load balancer health checks.Authentication
No authentication required. This is a public endpoint accessible to anyone.Response
Health status of the API. Returns
"ok" when the service is healthy.Service name identifier (e.g.,
"Insforge Backend")Current server timestamp in ISO 8601 format
Example Request
Example Response
When to Use Health Check API
Use this endpoint to:
- Uptime monitoring: Verify your backend is available and responding
- Load balancer health checks: Configure health checks in your infrastructure
- CI/CD pipelines: Verify deployment success before running tests
- Status pages: Display real-time API availability
- Alerting: Trigger alerts when the endpoint becomes unreachable
Common Use Cases
- Monitoring Services: Integrate with Pingdom, UptimeRobot, or DataDog for continuous monitoring
- Load Balancers: Configure AWS ELB, NGINX, or HAProxy to check backend health
- Kubernetes: Use as a liveness/readiness probe in your deployment
- CI/CD: Add a health check step after deployment to verify the service is running
- Status Dashboard: Display API availability on internal or public status pages
Integration Examples
Docker Health Check
Kubernetes Probe
Shell Script Monitoring
Node.js Monitoring
Response Time Considerations
The health check endpoint is designed to respond quickly (typically under 100ms). If response times are consistently slow or the endpoint times out, this may indicate:
- High server load
- Database connectivity issues
- Network problems
- Resource constraints