Skip to Content
API ReferenceSystem API

System API

The System API provides operational health information about the OpenModels platform. Use it for monitoring, load balancer health checks, and uptime verification.

Health Check

GET /api/health

Returns the overall health status of the API and its dependencies, including database connectivity and cache availability. This endpoint is designed for automated monitoring systems, load balancers, and uptime services.

Parameters

No parameters required.

Example Request

curl "https://api.openmodels.run/api/health"

Example Response

{ "status": "healthy", "timestamp": "2025-07-10T14:30:00.000Z", "services": { "api": { "status": "healthy" }, "database": { "status": "healthy", "latency_ms": 3 }, "cache": { "status": "healthy", "latency_ms": 1 } } }

Response Fields

FieldTypeDescription
statusstringOverall system status: healthy or degraded
timestampstringISO 8601 timestamp of the health check
servicesobjectStatus of individual service dependencies
services.apiobjectAPI service status
services.api.statusstringAPI status: healthy or degraded
services.databaseobjectDatabase connection status
services.database.statusstringDatabase status: healthy or degraded
services.database.latency_msintegerDatabase ping latency in milliseconds
services.cacheobjectCache layer status
services.cache.statusstringCache status: healthy or degraded
services.cache.latency_msintegerCache ping latency in milliseconds

HTTP Status Codes

StatusMeaningDescription
200HealthyAll services are operating normally
503DegradedOne or more services are unavailable or experiencing issues

When the system is degraded, the response body still returns with the same structure, but individual service statuses will reflect the issue:

{ "status": "degraded", "timestamp": "2025-07-10T14:30:00.000Z", "services": { "api": { "status": "healthy" }, "database": { "status": "healthy", "latency_ms": 5 }, "cache": { "status": "degraded", "latency_ms": null } } }
Last updated on