Skip to main content
API reference

Health

Generated HTTP reference for the 1 operation the published OpenAPI document describes under health.

1 min read
View MarkdownEdit on GitHub

Health

This page is generated from the published OpenAPI document. It is complete with respect to that document and says nothing about surfaces the document does not describe yet. See what is generated here for what that means.

Base URL: https://api.codespar.dev

Every operation below requires a Bearer token. See Authentication.

GET /v1/health

Read graded dependency health, as this credential's tenant sees it

Responses

StatusBodyDescription
200objectOK

Response 200

FieldTypeRequiredDescription
checksobjectyes
observed_atstring (date-time)yesWhen this call built the response. It is also the snapshot key, so two calls landing in the same instant store one row.
schema_versionobjectyes
status"healthy" | "degraded" | "down"yesdown iff the database or the vault check failed. degraded iff embeddings are empty, FX is not fresh, telemetry is stale, or the tenant has no connection. healthy otherwise — which includes embeddings low, connections partial and telemetry idle.

Example response

{
  "status": "healthy",
  "checks": {
    "db": {
      "ok": true,
      "message": "string",
      "latency_ms": 0
    },
    "vault": {
      "ok": true,
      "message": "string"
    },
    "embeddings": {
      "populated": 0,
      "total": 0,
      "percent": 0,
      "status": "ok",
      "message": "string"
    },
    "fx_rates": {
      "status": "fresh",
      "message": "string"
    },
    "telemetry": {
      "last_hour_attempts": 0,
      "last_24h_attempts": 0,
      "status": "active",
      "message": "string"
    },
    "connections": {
      "connected": 0,
      "total_servers": 0,
      "status": "wired",
      "message": "string"
    }
  },
  "schema_version": {
    "latest": "string"
  },
  "observed_at": "2026-01-15T12:00:00.000Z"
}

Example request

curl -X GET https://api.codespar.dev/v1/health \
  -H "Authorization: Bearer $CODESPAR_API_KEY"
Health | CodeSpar