Skip to content

Service liveness and dependency status

GET
/v1/health
curl --request GET \
--url https://api.legesher.io/v1/health

Liveness plus per-component dependency status.

Always returns 200: a deployment with a failing component is alive but ‘degraded’ (the affected endpoints answer their own 5xx). Read the JSON body, not the HTTP status, to tell a degraded deployment from a healthy one.

Successful Response

Media type application/json
HealthResponse

Service liveness plus dependency status.

object
components
required
ComponentStatuses

Per-component health, one status word each.

object
database
required
Database

The key and subscription store.

string
Allowed values: ok degraded down
foundation
required
Foundation

The translation engine (‘down’ when it is unavailable).

string
Allowed values: ok degraded down
limiter
required
Limiter

The rate limiter.

string
Allowed values: ok degraded down
foundation
required
FoundationStatus

Availability of the foundation packages on this deployment.

object
available
required
Available
boolean
core_version
Core Version

Installed legesher-core version, if any.

Any of:
string
i18n_version
I18N Version

Installed legesher-i18n version, if any.

Any of:
string
status
required
Status

‘degraded’ when any component is not ok.

string
Allowed values: ok degraded
version
required
Version

The API service’s version.

string

Example

{
"components": {
"database": "ok",
"foundation": "ok",
"limiter": "ok"
},
"status": "ok"
}
X-Request-ID
string

Correlation id for this request: the validated inbound X-Request-ID when one was sent, else a server-minted UUID.