SmartRetry provides health check endpoints to monitor API availability. Use these endpoints for uptime monitoring, load balancer health checks, and integration testing.
Endpoints
Health endpoints do not require authentication. They are designed for infrastructure monitoring.
Basic health check
Returns 200 OK if the API service is running.
Readiness check
Returns 200 OK when the API is ready to accept and process requests. This endpoint verifies that all dependencies (database, cache, downstream services) are available.
Use this endpoint for:
- Kubernetes readiness probes
- Load balancer health checks
- Pre-deployment verification
Liveness check
Returns 200 OK if the API process is running. This is a minimal check that doesn’t verify dependencies.
Use this endpoint for:
- Kubernetes liveness probes
- Basic uptime monitoring
- Restart triggers
Using health checks
Kubernetes probes
Configure Kubernetes liveness and readiness probes to automatically restart unhealthy pods and route traffic only to ready instances:
Uptime monitoring
Add health endpoints to your monitoring service (Datadog, New Relic, Pingdom, etc.) to receive alerts when SmartRetry is unavailable:
Pre-request validation
Check API readiness before sending payment requests to fail fast:
For production monitoring, also subscribe to the SmartRetry status page for incident notifications and scheduled maintenance alerts.