Gage Intelligence

Library API

Live API serving public catalog access and paid intelligence analysis. Public catalog endpoints are open with local rate limits. Intelligence endpoints require a paid API key.

https://library.gagegreengroup.com

Layer 1 — Raw Text

GET /api/v1/ask Search primary source passages

Paid Scholar endpoint. Returns chronological primary source passages matching your query. Not generated summaries — real text from real books.

Parameters

q (string, required) — search query
Example: /api/v1/ask?q=fiduciary+duty

Response

{
  "query": "fiduciary duty",
  "passages": [
    {
      "text": "Fiduciary duties are duties enforced by law...",
      "source": "Pomeroy Equity Jurisprudence",
      "department": "equity trusts",
      "relevance": 0.94
    }
  ],
  "total": 12
}
Loading...
GET /api/v1/catalog List all texts by department

Returns the full catalog. Optionally filter by department.

Parameters

department (string, optional) — filter by department name

Layer 2 — Linguistic DNA

GET /api/v1/etymology/{term} 5 dictionaries + etymology chain

Compares definitions across 5 dictionaries spanning 1828–1995. Traces the linguistic origin through languages (English → Old English → Norse → Proto-Germanic).

Response

{
  "term": "trust",
  "found": true,
  "dictionaries": {
    "Webster's 1828": "Confidence; reliance...",
    "Bouvier's 1856": "An obligation on a person...",
    "Webster's 1913": "Assured reliance on the character...",
    "Black's 1968": "A right of property, real or personal..."
  },
  "chain": [
    {"form": "trust", "language": "English"},
    {"form": "trost", "language": "Middle English"},
    {"form": "traust", "language": "Old Norse"},
    {"form": "trausti", "language": "Proto-Germanic"}
  ]
}
Loading...
GET /api/v1/drift/{term} Definition evolution over time

Tracks how a legal or philosophical term's meaning changed across centuries. The delta between definitions reveals when and how meaning was altered.

Loading...

Layer 3 — Temporal Forensics

GET /api/v1/timeline Temporal coverage across centuries

Master timeline of all dated texts in the library. 380 BCE to 2026 CE. Identifies temporal gaps where knowledge may be missing or suppressed.

GET /api/v1/time-traveler/{concept} Concept evolution across centuries

Paid Researcher endpoint. Traces how a concept appears across centuries. Shows which eras discussed it most and where it disappears.

Loading...

Layer 4 — Knowledge Genome

GET /api/v1/genome/{concept} 10 computable properties, scored 0-100

Paid Researcher endpoint. Computes 10 knowledge properties: frequency, tradition spread, era range, polarity, citation depth, suppression index, bridge score, convergence count, rhythm period, gender ratio. Returns a composite genome score 0-100.

Loading...

Layer 5 — Suppression Detection

GET /api/v1/suppression 91 authors tracked, 26 gaps detected

Identifies authors frequently cited by texts in the library whose own works are absent. A text referenced hundreds of times but missing from every repository is a signal worth investigating.

GET /api/v1/contradictions/{concept} Conflicting claims across sources

Paid Researcher endpoint. Searches all texts for a concept, extracts claims, and identifies where sources from different departments or eras disagree.

Loading...
GET /api/v1/power-structure/{doctrine} Who it protects vs constrains

Paid Researcher endpoint. For any legal or philosophical doctrine, maps protective language ("grants", "empowers", "rights of") vs restrictive language ("prohibits", "subject to", "liable"). Reveals whose interests each doctrine serves.

Loading...

Layer 6 — Knowledge Patterns

GET /api/v1/bridge Cross-department bridge network

Returns the 78 irreplaceable bridge authors — nodes that, if removed, break entire knowledge chains between departments. Also returns the strongest cross-department citation links.

GET /api/v1/predictions Gap predictions from graph analysis

Returns all gap predictions generated from citation graph asymmetries. Each prediction identifies missing knowledge — texts that should exist based on the patterns in the graph.

Core

GET /api/v1/status Health check

Health check. Returns only {"status":"ok"}.

Loading...
GET /api/v1/access-policy Public entitlement and local-first cost-control contract

Returns the public paid-access contract: paid tiers, anonymous compute posture, and local-first cost controls. The response is redacted and does not expose admin routes, internal policy files, tokens, or runtime service details.

Loading...
GET /api/v1/stats Library statistics

Public cached stats: current text count, departments, graph nodes, graph edges, communities, and catalog timestamp.

Loading...
GET /api/v1/acquisitions Self-expanding library log

Lists approved acquisition records. New auto-acquisition is disabled for anonymous users; it requires a Researcher API key and explicit deployment enablement.

POST /api/v1/intake/tickets Paid local intake request

Paid Researcher API key endpoint. Creates a metadata-only source intake ticket for the Minisforum workhorse queue. No file bytes, OCR, downloads, or catalog mutation run from this endpoint.

Body

{
  "title": "Source title",
  "original_filename": "source.pdf",
  "sha256": "64-character hex digest",
  "source_label": "Member supplied scan",
  "size_bytes": 2048,
  "requested_action": "stage_for_ocr"
}
GET /api/v1/graph/download Full citation graph JSON

Downloads the complete citation graph used by the Knowledge Map visualization.

All endpoints return JSON. Public catalog endpoints are open with local rate limits. Intelligence endpoints require a paid API key sent as X-API-Key.

Questions? library@gagegreengroup.com