Skip to main content

GET /v1/health

Returns the health status of the API and its dependencies. No authentication required.

Parameters

None.

Example

curl "https://api.moxiemetrx.com/v1/health"
{
"status": "ok",
"timestamp": "2026-04-03T01:45:08+00:00",
"version": "1.0.0",
"uptime_seconds": 1084,
"services": {
"database": "ok",
"redis": "ok",
"data_collector": "ok",
"fx_updates": "ok"
},
"data_freshness": {
"crypto_prices_age_seconds": 8,
"fx_rates_age_seconds": 2707
},
"metrics": {
"requests_24h": 526,
"avg_latency_ms": 1134,
"error_rate": 0.0
}
}

Response fields

FieldTypeDescription
statusstringOverall health: ok or degraded.
versionstringAPI version.
uptime_secondsintegerSeconds since last restart.
servicesobjectPer-service status (database, redis, data_collector, fx_updates). Each is ok or error.
data_freshnessobjectAge in seconds of the most recent crypto price and FX rate data.
metricsobject24h request count, average latency, and error rate.
note

This endpoint is not rate limited and does not require an API key. Use it freely in monitoring pipelines.