Skip to content

API documentation

Read a fact with its source and history

One fact as montaye’s computations read it: the revision in force on a day (or the one a calculation line names by revision_id), its values (amounts, bracket tables, lookup grids), the official document with the page and words it was read from, and every span of the same fact the published facts hold, earliest first. Values are decimal strings; ratios are fractions (0.062), never percents. GET /v1/status lists the codes. Fields are only ever added.

REST: GET /v1/facts MCP tool: fact_read Needs an API key
Refusal codes
Input (JSON Schema)
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "pattern": "^[a-z0-9_.-]+$"
    },
    "on": {
      "type": "string",
      "format": "date"
    },
    "revision_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [],
  "$schema": "http://json-schema.org/draft-07/schema#"
}