Skip to main content
GET
/
health
/
database
{
  "status": "<string>",
  "environment": "<string>",
  "database_url": "<string>",
  "error": "<string>"
}

Overview

Returns detailed information about database connectivity and configuration. Useful for debugging connection issues in different environments.

Response

status
string
required
Database health status
  • healthy - Database connection successful
  • unhealthy - Database connection failed
environment
string
required
Current environment (development, staging, production)
database_url
string
required
Sanitized database connection string (credentials hidden)
error
string
Error message if connection failed

Examples

curl -X GET https://api.judge.example.com/health/database
curl -X GET https://api.judge.example.com/health/database