Overview
The health check endpoint provides a simple way to monitor the status of Money Tracker’s backend Edge Functions. It returns basic service information and can be used by monitoring tools or load balancers.Endpoint
Authentication
No authentication required. This is a public endpoint.Request
This endpoint accepts no parameters.cURL
Response
Success Response (200)
Service status - always “ok” when healthy
ISO 8601 timestamp of the health check
Platform identifier - “supabase-edge-functions”
Service name - “money-tracker-backend”
Current environment (development, staging, production)
Example Response
Error Response (500)
Service status - “error” when unhealthy
ISO 8601 timestamp of the failed check
Error message
Error Response
Use Cases
Monitoring Systems
Configure your monitoring tools (like UptimeRobot, Pingdom, or Datadog) to periodically check this endpoint:Load Balancer Health Checks
If deploying behind a load balancer, configure it to use this endpoint for health checks with a 200 status code as the success condition.CI/CD Pipeline Verification
Use this endpoint in deployment scripts to verify the service is running after deployment:Deployment Script
Implementation Details
This endpoint:- Responds within milliseconds
- Does not check database connectivity (basic service health only)
- Returns environment information from the
ENVIRONMENTenvironment variable - Uses CORS headers to allow cross-origin requests
This is a lightweight health check that only verifies the Edge Function runtime is responding. It does not test database connectivity or external service availability.
Related Functions
- auth-start - Initiate Gmail OAuth
- gmail-webhook - Process Gmail notifications