Local prototype · simulated data
System API
Operational endpoints.
GET
/health
Liveness check
Local prototype · simulated data
Authentication
No API key. Requests must come from an allowed website origin and are rate-limited per client.
Responses
- 200 Service is running.
- 429 Rate limit exceeded. —
Error
Response fields (200)
| Field | Type | Required | Description |
|---|---|---|---|
status | string (always "ok") | Yes | |
source | enum: "simulated", "live" | Yes |
|
Example
curl "http://localhost:8787/health"
// Server-side (Node 18+). Never ship a secret key to a browser.
const res = await fetch("http://localhost:8787/health");
const body = await res.json();
if (!res.ok) throw new Error(body.error.code);
import requests
res = requests.get(
"http://localhost:8787/health",
timeout=10,
)
res.raise_for_status()
print(res.json())
Response 200 from the local prototype (simulated data):
{
"status": "ok",
"source": "simulated"
}