Skip to content

API reference

Health

A single endpoint for verifying connectivity and subsystem health. Useful for monitoring, load balancer probes, and CI smoke tests.

Key points

  • No authentication required — health is publicly reachable
  • Status is one of healthy, degraded, or unhealthy
  • Per-subsystem checks are reported alongside the overall status
  • Use this for load balancer probes and external monitoring

About health

The health endpoint reports overall service status plus per-subsystem health for the engine’s required infrastructure: PostgreSQL, MongoDB, and Redis. The endpoint is publicly accessible — no JWT or organization header required — so it works as a load balancer probe.

Three statuses are possible:

  • healthy — every subsystem is reachable and responsive
  • degraded — at least one non-critical subsystem is unhealthy, but the engine can still process requests with reduced functionality
  • unhealthy — at least one critical subsystem is unreachable; expect failures

Check system health

GET/api/v1/health

Returns overall system health and per-subsystem status. No authentication required.

Responses

200Health check completed. Inspect the status field.
{
  "status": "healthy",
  "timestamp": "2026-04-26T15:30:00.000Z",
  "checks": {
    "postgres": "healthy",
    "mongodb": "healthy",
    "redis": "healthy"
  }
}

Even when the engine is degraded, the endpoint returns 200 with a status field reflecting the actual state. The HTTP status is not the signal — the JSON body is. This is intentional so monitoring can distinguish “engine unreachable” (HTTP failure) from “engine reachable but degraded” (HTTP 200 with status: degraded).

Example: degraded response

When Redis is down but Postgres and Mongo are healthy:

{
  "status": "degraded",
  "timestamp": "2026-04-26T15:30:00.000Z",
  "checks": {
    "postgres": "healthy",
    "mongodb": "healthy",
    "redis": "unhealthy"
  }
}

Use for probes, not for client retries

This endpoint is designed for monitoring systems, not for client-side health checks before each request. Don’t hit it on every API call — it adds latency without value. If your request fails, the failure response itself tells you what went wrong.