Skip to main content

Health API

These endpoints report platform health. They require no authentication and are safe to poll from load balancers, uptime monitors, and status pages.

Endpoints​

MethodPathSummary
GET/v1/healthLiveness and dependency checks
GET/v1/health/cpaasCPaaS provider circuit-breaker state

GET /v1/health​

Reports overall service health plus the status of core dependencies (PostgreSQL, Redis).

Request

curl https://api.relavoi.com/v1/health

Response

{
"status": "healthy",
"checks": {
"postgres": "ok",
"redis": "ok"
},
"timestamp": "2026-07-15T12:15:35.885Z"
}
FieldTypeDescription
statusstringOverall status, e.g. healthy
checks.postgresstringPostgreSQL check result (ok)
checks.redisstringRedis check result (ok)
timestampstringISO-8601 time the check ran

GET /v1/health/cpaas​

Reports the circuit-breaker state for each telephony provider. Use this to observe automatic failover between the primary and backup providers.

Request

curl https://api.relavoi.com/v1/health/cpaas

Response

{
"providers": [
{
"name": "primary",
"state": "CLOSED",
"openedAt": null,
"lastError": null
}
],
"timestamp": "2026-07-15T12:15:35.907Z"
}
FieldTypeDescription
providers[].namestringProvider identifier, e.g. primary
providers[].statestringCircuit-breaker state: CLOSED, OPEN, or HALF_OPEN
providers[].openedAtstring | nullWhen the breaker last opened, or null if closed
providers[].lastErrorstring | nullLast recorded error, or null
timestampstringISO-8601 time the check ran