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
| Field | Type | Description |
|---|---|---|
status | string | Overall health: ok or degraded. |
version | string | API version. |
uptime_seconds | integer | Seconds since last restart. |
services | object | Per-service status (database, redis, data_collector, fx_updates). Each is ok or error. |
data_freshness | object | Age in seconds of the most recent crypto price and FX rate data. |
metrics | object | 24h 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.