Skip to the main content
GET0 units (free)No API key required

GET /health

Liveness check.

Server: https://gridforge-engine.fly.dev · Operation ID: health · TS SDK: client.health()

Behaviour & Evidence Boundary

Returns {ok, service, version}. Free, no key, and bounded by a generous separate rate limit.

Call via cURL, TypeScript SDK & Python CLI

cURL (HTTPS JSON)
bash
curl -sS -X GET "https://gridforge-engine.fly.dev/health"
TypeScript SDK — client.health()
ts
import { GridForgeClient } from "@timetopower/gridforge-sdk";

const client = new GridForgeClient();
const result = await client.health();
console.log(result);
Python stdlib CLI (gridforge)
bash
gridforge ops

Request Contract & Input Schema

This read endpoint takes no request body and no required query parameters.

Response Schema, Headers & Error Codes

Responses carry X-GridForge-Schema: gridforge/api/1, x-request-id, metering headers (X-GridForge-Units, X-GridForge-Units-Month, X-GridForge-Units-Remaining), rate-limit headers (RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset), and RFC 9745/8594 Deprecation / Sunset headers when applicable. POST calls accept Idempotency-Key up to 150 characters.

OpenAPI 3.1 200 Response Schema
json
{
  "type": "object",
  "required": [
    "ok",
    "service",
    "version",
    "schema_version"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "description": "The engine's API schema id, added to every JSON object response."
    },
    "ok": {
      "type": "boolean"
    },
    "service": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "additionalProperties": true
}
Error codes returned by GET /health
StatusCondition
400the body is not valid JSON or not a JSON object, or the Idempotency-Key is longer than the limit
401a metered route was called without a key, or with one the engine does not accept
402the key's monthly allowance or cap is spent; the call was refused and not charged. Buy more, do not retry
409the requested action conflicts with current readiness or state (for example require_rfq_ready on an architecture that is not yet RFQ-ready)
422the input is too thin or invalid, or an Idempotency-Key was reused with a different body; nothing was solved
429the per-client request rate limit was exceeded; wait and retry (the limit is rate_limit_per_minute at /v1/version)
503paid endpoints are not configured on that deployment, or a charge could not be recorded durably

Worked Example (examples/intake/reference_hall.json)

SYNTHETIC REFERENCE DATA

SYNTHETIC REFERENCE DATA — every request and response in this file was generated deterministically by running the real GridForge Python engine against examples/intake/reference_hall.json. Not a measurement of any customer asset.

Real Engine Output (Synthetic Hall) — GET /health
json
{
  "schema_version": "gridforge/api/1",
  "ok": true,
  "service": "gridforge",
  "version": "0.9.0"
}