Health
GET /health
Check API service health and database connectivity.
bash
curl https://mainnet.api.ryze.pro/api/healthResponse 200
json
{
"ok": true,
"status": "healthy",
"service": "ryze-api",
"timestamp": "2026-04-15T12:00:00.000Z",
"uptime": 86400,
"version": "0.0.1",
"database": {
"status": "connected",
"message": "Elasticsearch cluster is healthy"
}
}Response 503
json
{
"ok": false,
"status": "unhealthy",
"service": "ryze-api",
"timestamp": "2026-04-15T12:00:00.000Z",
"uptime": 86400,
"version": "0.0.1",
"database": {
"status": "disconnected",
"error": "Connection refused"
}
}Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Overall health status |
status | string | "healthy" or "unhealthy" |
service | string | Always "ryze-api" |
timestamp | string | ISO 8601 timestamp |
uptime | number | Seconds since service start |
version | string | API version |
database.status | string | "connected" or "disconnected" |
database.message | string | Status details (healthy) |
database.error | string | Error details (unhealthy) |