API reference
Why Atlas believes a fact
One fact with its proof tree: the rule and the facts it was derived from, down to the evidence each rests on, and whether every leaf rests on evidence. A proof that cannot be completed comes back as no proof, never a shorter tree.
Needs scope decisions:read.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
space_id*stringThe Decisions space.
fact_id*stringThe fact's id (clm_…).
iohr.atlas.v1.GetFactResponse
application/json- response
iohr.atlas.v1.GetFactResponse
complete*booleandepth*integerint32fact?iohr.atlas.v1.Fact
proof?iohr.atlas.v1.ProofNode
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.atlas.getFact("<space_id>", "<fact_id>"); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "complete": true, "depth": 0, "fact": { "class": "string", "conflict": "string", "contradicted_by": [ { "id": "string", "type": "string" } ], "derived": true, "evidence": [ { "id": "string", "type": "string" } ], "id": "string", "inputs": [ "string" ], "polarity": "string", "predicate": "string", "rule": "string", "stale_change": "string", "stale_since": "string", "subject": "string", "support": "string", "validity": "string", "value": "string" }, "proof": { "claim_id": "string", "evidence": [ { "id": "string", "type": "string" } ], "inputs": [ {} ], "kind": "string", "rule": "string" }}