oslew docs
Console
Menu

Serviceno keyoperationId health

GET/v1/health

The index the service answers from.

This route answers without a key.

Explained in What is logged and AI agents over MCP.

Example

What the service answers from.

curl
curl "https://api.oslew.com/v1/health"
Python
from oslew import Client

# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")

answer = client.health()
TypeScript
import { Client } from "@oslew/client";

// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });

const answer = await client.health();
Response
HTTP/1.1 200 OK
content-type: application/json

{
  "epoch": 30,
  "segments": 29,
  "entities": 43903090,
  "bytes": 403859971,
  "backing": "resident",
  "release": "2026-08-19.0",
  "query_log": null,
  "query_log_dropped": 0,
  "query_log_flush_failures": 0,
  "keys": 0,
  "key_source": null,
  "entitlements_age_s": null,
  "ready": true,
  "draining": false,
  "limiter": "local",
  "fleet_size": 0
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.

Responses

200 — OK

  • backingstringrequired
    resident | ranged
  • bytesintegerrequired
  • entitiesintegerrequired
  • epochintegerrequired
  • keysintegerrequired
    Live API keys this pod serves; 0 under the shared token or open.
  • query_logstring | nullrequired
    Where the anonymous query log is written: a directory, or a store prefix for a fleet.
  • query_log_droppedintegerrequired
    Events dropped because the log writer fell behind.
  • releasestringrequired
  • segmentsintegerrequired
  • drainingboolean
    Whether a shutdown is in progress; /readyz is already failing while in-flight requests finish.
  • entitlements_age_sinteger | null
    Seconds since the last pull; growing means the control plane is unreachable.
  • fleet_sizeinteger
    Pods the share arithmetic last saw; 0 when rates are not shared.
  • key_sourcestring | null
    Where the entitlements come from.
    control-plane | published | file
  • limiterstring
    Whether this pod serves whole rates, its share of the fleet's, or a fallback because the coordinator is unreachable.
    local | shared | degraded
  • query_log_flush_failuresinteger
    Chunks the object store refused; non-zero means billing input is being lost.
  • readyboolean
    Whether this pod can authenticate a key yet; false means it refuses every key.

Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.