Send a task, get back a structured reasoning trace with an on-chain-ready proof hash.
The API base URL:
Send a plain-language task and receive an illuminated reasoning trace.
// illuminate a task const res = await fetch(BASE + "/api/illuminate", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ task: "Should I bridge USDC to Solana now?" }) }); const trace = await res.json();
Runs the agent on a task and returns the full reasoning trace. Body parameters:
{
"task": "string" // required, max 160 chars
}
{
"task": "...",
"steps": [
{ "thought": "...", "detail": "..." }
],
"conclusion": "...",
"hash": "sha256 of the trace",
"id": "permalink uuid"
}
The hash is the SHA-256 of the canonical JSON of steps + conclusion. Re-serialize, re-hash, and compare. A mismatch means the trace was altered.
import crypto from "crypto"; const canonical = JSON.stringify({ steps, conclusion }); const h = crypto.createHash("sha256").update(canonical).digest("hex"); // h should equal response.hash
The public demo endpoint is limited to 10 illuminations per IP per day. Higher limits and on-chain anchoring are available to $LIC holders.