Skip to main content

Health Checks

Health check endpoints for monitoring the availability and readiness of the Inherent Public API. These endpoints do not require authentication.


Liveness Check

Returns a simple status indicating the service is running.

GET /health

Authentication

None required.

Code Examples

curl https://api.inherent.systems/health

Response

Status: 200 OK

{
"status": "healthy",
"service": "inh-public-api-svc"
}

Response Fields

FieldTypeDescription
statusstringAlways "healthy" if the service is responding
servicestringService identifier ("inh-public-api-svc")

Readiness Check

Validates that the service and all its dependencies (PostgreSQL, Weaviate) are operational. Use this endpoint for orchestration tools (e.g., Docker health checks, Kubernetes readiness probes) to determine if the service is ready to accept traffic.

GET /health/ready

Authentication

None required.

Code Examples

curl https://api.inherent.systems/health/ready

Response

Status: 200 OK

{
"status": "healthy",
"timestamp": "2026-04-03T12:34:56.789Z",
"version": "0.1.0",
"service": "inh-public-api-svc",
"checks": {
"database": {
"status": "healthy",
"latency_ms": 2.3,
"message": "PostgreSQL connection OK"
},
"weaviate": {
"status": "healthy",
"latency_ms": 5.1,
"message": "Weaviate connection OK"
}
}
}

Response Fields

FieldTypeDescription
statusstringOverall status: "healthy", "degraded", or "unhealthy"
timestampstringISO 8601 timestamp of the health check
versionstringService version
servicestringService identifier ("inh-public-api-svc")
checksobjectIndividual dependency check results
checks.databaseobjectPostgreSQL health check
checks.database.statusstring"healthy", "degraded", or "unhealthy"
checks.database.latency_msfloatRound-trip latency to the database in milliseconds
checks.database.messagestringHuman-readable status message
checks.weaviateobjectWeaviate health check
checks.weaviate.statusstring"healthy", "degraded", or "unhealthy"
checks.weaviate.latency_msfloatRound-trip latency to Weaviate in milliseconds
checks.weaviate.messagestringHuman-readable status message

Status Values

StatusMeaning
healthyAll dependencies are reachable and responding normally
degradedAt least one dependency is slow or intermittently failing, but the service can still handle requests
unhealthyOne or more critical dependencies are unreachable; the service cannot reliably handle requests

Degraded Example

When a dependency is slow or experiencing issues:

{
"status": "degraded",
"timestamp": "2026-04-03T12:34:56.789Z",
"version": "0.1.0",
"service": "inh-public-api-svc",
"checks": {
"database": {
"status": "healthy",
"latency_ms": 3.1,
"message": "PostgreSQL connection OK"
},
"weaviate": {
"status": "degraded",
"latency_ms": 2150.4,
"message": "Weaviate response time exceeds threshold"
}
}
}

Unhealthy Example

When a dependency is completely unreachable:

{
"status": "unhealthy",
"timestamp": "2026-04-03T12:34:56.789Z",
"version": "0.1.0",
"service": "inh-public-api-svc",
"checks": {
"database": {
"status": "unhealthy",
"latency_ms": null,
"message": "Connection refused: could not connect to PostgreSQL"
},
"weaviate": {
"status": "healthy",
"latency_ms": 4.8,
"message": "Weaviate connection OK"
}
}
}

Liveness Alias

An alias for the liveness check endpoint, provided for convenience with orchestration tools that expect a /health/live path.

GET /health/live

Authentication

None required.

Response

Identical to the liveness check response:

{
"status": "healthy",
"service": "inh-public-api-svc"
}