Sign in
Docs
API referenceDecisions

API reference

Why Atlas believes a fact

Have a token? Manage tokens in the console
GET
/v1/atlas/spaces/{space_id}/facts/{fact_id}

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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

space_id*string

The Decisions space.

fact_id*string

The fact's id (clm_…).

Response Body

iohr.atlas.v1.GetFactResponse

application/json
  1. response

iohr.atlas.v1.GetFactResponse

complete*boolean
depth*integer
Formatint32
fact?

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.

Example Response
{  "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"  }}