This site currently demonstrates the protocol in your browser. Wallets, assets, AI responses and confirmations are simulated, with shorter deadlines. These guides describe the full protocol; live blockchain and API services are paused. Use Demo tools to advance time or reset your playground.
Public API
Structured access to Rationall's conviction-weighted knowledge graph, organised around the DIKW hierarchy: Information (claims, collections, domains), Knowledge (search, graph traversal, topics), and Wisdom (Ask Rationall). All claim Data lives in decentralised storage (IPFS) and is verified on the Cardano blockchain — this API provides convenient access. Designed as tool-calling primitives for AI agents, and for direct use by developers and researchers.
Base URL
https://dormant.invalidQuick Start
Fetch The Complete Set (best-verified claims across all domains):
curl https://dormant.invalid/api/v1/collections/complete-setSearch for claims by meaning:
curl "https://dormant.invalid/api/v1/search/smart?q=is+privacy+a+right&limit=5"Ask a question and get a conviction-weighted answer:
curl -X POST https://dormant.invalid/api/v1/ai/ask \
-H "Content-Type: application/json" \
-d '{"query": "What is the strongest argument for privacy?"}'Authentication
All claim data is freely available in decentralised storage (IPFS) and verified on the Cardano blockchain. This API provides convenient structured access. API keys can be passed via the x-api-key header or api_key query parameter for higher quotas.
# With x-api-key header (recommended)
curl -H "x-api-key: YOUR_API_KEY" \
https://dormant.invalid/api/v1/collections/complete-set
# Or with query parameter
curl "https://dormant.invalid/api/v1/collections/complete-set?api_key=YOUR_API_KEY"Get your API key: Sign up at dormant.invalid/api-keys to get an API key (100 requests/day).
Rate Limits
Anonymous
No API key required
Registered
API key required • Under development
Production
Contact for allocation • Under development
Anonymous
No API key required
Registered
API key required
Production
Contact for allocation
API Endpoints
Information
Structured access to the conviction graph — claims, collections, domains, and versioned reference sets.
Collections
/api/v1/collectionsList all collections (reference, heritage)
Parameters
type·string(optional)Filter by type (reference, heritage)
knowledgeDomain·string(optional)Filter by knowledge domain slug
Example
curl https://dormant.invalid/api/v1/collections/api/v1/collections/complete-setKnowledge overview — domains, topics, idea clusters, and top claims with conviction scores
Parameters
level·number(optional)Filter by community level: 0 = topics, 1 = domains
Example
curl https://dormant.invalid/api/v1/collections/complete-set/api/v1/collections/:slugGet a collection with all its claims
Parameters
slug·stringCollection slug (e.g., ai-ethics)
format·string(optional)Response format: json (default), yaml, or text
Example
curl https://dormant.invalid/api/v1/collections/ai-ethics/api/v1/collections/:slug/hashGet the cryptographic content hash of the current collection
Example
curl https://dormant.invalid/api/v1/collections/ai-ethics/hash/api/v1/collections/:slug/versionGet version metadata (content hash, claim count, timestamps)
Example
curl https://dormant.invalid/api/v1/collections/ai-ethics/version/api/v1/collections/:slug/summaryConcise text summary optimised for AI context windows
Example
curl https://dormant.invalid/api/v1/collections/ai-ethics/summary/api/v1/collections/:slug/guardrail-contextReturns the exact overlay text Rationall would inject as a guardrail. The four-rung degradation (full → editorial_summary → compressed_summary → tagline) picks the best fit for your model's token budget. Use this to inject Rationall guardrails into your own agent without rebuilding the composer.
Parameters
mode·string(optional)auto (default) | full | editorial_summary | compressed_summary | tagline
budgetTokens·number(optional)Approx token budget the overlay must fit in (default: 500)
Example
curl "https://dormant.invalid/api/v1/collections/ai-kidsafe-5-9/guardrail-context?mode=auto&budgetTokens=500"Version Management
/api/v1/collections/:slug/versionsList all published versions with claim counts and certificate counts
Parameters
slug·stringCollection slug (e.g., ai-ethics)
Example
curl https://dormant.invalid/api/v1/collections/ai-ethics/versions/api/v1/collections/:slug/at/:versionIdAccess a frozen version by version number (v1, v2) or content hash
Parameters
versionId·stringVersion identifier: v1, v2, or content hash
format·string(optional)Response format: json (default), yaml, or text
Example
curl https://dormant.invalid/api/v1/collections/ai-ethics/at/v1/api/v1/collections/:slug/diffCompare versions — live-vs-published or published-vs-published
Parameters
version·number(optional)Version number for live-vs-published diff
from·string(optional)Source version hash or vN for version-vs-version diff
to·string(optional)Target version hash or vN for version-vs-version diff
Example
curl "https://dormant.invalid/api/v1/collections/ai-ethics/diff?version=1"Claims
/api/v1/claims/:identifierGet detailed information about a specific claim (by slug or content hash)
Parameters
identifier·stringClaim slug or SHA256 content hash
Example
curl https://dormant.invalid/api/v1/claims/abc123.../api/v1/claims/:identifier/provenanceOn-chain verification and provenance information
Parameters
identifier·stringClaim slug or content hash
Example
curl https://dormant.invalid/api/v1/claims/abc123.../provenanceKnowledge
Synthesised understanding through semantic search, graph traversal, and canonical topic classification.
Topics & Domains
Canonical knowledge taxonomy. Domains are top-level groupings (e.g., morals, scientific); topics are finer classifications within domains.
/api/v1/graph/topicsList canonical topics with parent domain, claim counts, and descriptions
Example
curl https://dormant.invalid/api/v1/graph/topics/api/v1/graph/knowledgeHierarchical knowledge graph: Universal Set → Domains → Topics → Claims
Parameters
domains·string(optional)Comma-separated domain slugs (e.g., morals,scientific)
per_community·number(optional)Claims per topic (default: 5)
min_conviction·number(optional)Minimum conviction score (default: 10)
Example
curl "https://dormant.invalid/api/v1/graph/knowledge?domains=ethics-values&per_community=5"Search
Semantic and hybrid search across the conviction graph. Designed as tool-calling primitives for AI agents.
/api/v1/search/smartHybrid semantic + keyword search for claims
Parameters
q·stringNatural language query (1-500 chars)
limit·number(optional)Max results, 1-50 (default: 10)
threshold·number(optional)Minimum similarity 0-1 (default: 0.5)
semanticWeight·number(optional)Semantic vs keyword weight 0-1 (default: 0.7)
Example
curl "https://dormant.invalid/api/v1/search/smart?q=is+privacy+a+right&limit=5"/api/v1/search/similar/:claimIdFind claims semantically similar to a given claim
Parameters
claimId·numberInternal claim ID
limit·number(optional)Max results (default: 5, max: 20)
threshold·number(optional)Minimum similarity (default: 0.5)
Example
curl "https://dormant.invalid/api/v1/search/similar/42?limit=5"Graph Traversal
Traverse typed edges between claims: supports, contradicts, related.
/api/v1/graph/edgesGet typed edges between a set of claims with confidence scores
Parameters
claimIds·stringComma-separated claim IDs (e.g., 1,2,3)
Example
curl "https://dormant.invalid/api/v1/graph/edges?claimIds=1,2,3"/api/v1/graph/claims/:claimId/contextFull graph context for a claim: connected claims, edges, sources, and topics
Parameters
claimId·numberInternal claim ID
depth·number(optional)Traversal depth 1-10 (default: 3)
Example
curl "https://dormant.invalid/api/v1/graph/claims/42/context?depth=2"Wisdom
Conviction-weighted inference grounded in the knowledge graph — the user, augmented by Rationall.
Ask Rationall
Conviction-weighted inference engine. Post a question, get an answer grounded in the knowledge graph. Pin collections as guardrails to apply community-conviction-backed values as a system-prompt overlay — same shape Ask Rationall itself uses, see the Guardrails section below.
/api/v1/askAsk a natural language question — returns AI-synthesised answer with relevant claims and sources, grounded in the conviction graph. Optionally pass `guardrails` to overlay community-conviction values on the response.
Parameters
query·stringNatural language question (5-1000 chars)
walletAddress·string(optional)For rate limiting and tier resolution
context·object(optional)Focus context: { claimHash?, sourceId?, categoryId? }
guardrails·object(optional){ collectionSlugs: string[], intensity: "soft"|"strict", injectMode: "auto"|"full"|"editorial_summary"|"compressed_summary"|"tagline" }. Server resolves slugs, walks the degradation rung that fits the model budget, and returns `guardrailsApplied` so you can see what was injected (and what was dropped).
Example
curl -X POST https://dormant.invalid/api/v1/ask \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Help me write a bedtime story about a brave fox.",
"guardrails": {
"collectionSlugs": ["ai-kidsafe-5-9"],
"intensity": "strict",
"injectMode": "auto"
}
}'/api/v1/askPublic API proxy for Ask Rationall (requires API key)
Parameters
query·stringNatural language question (5-1000 chars)
Example
curl -X POST https://dormant.invalid/api/v1/ask \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"query": "What are the key tensions around AI autonomy?"}'Administrative
Compliance certificates, attestation, and operational utilities.
Cryptographic Attestation
/api/v1/collections/:slug/attestationGet cryptographic attestation (Ed25519 signature) for a version
Parameters
hash·stringVersion content hash
Example
curl "https://dormant.invalid/api/v1/collections/ai-ethics/attestation?hash=abc123"/api/v1/collections/:slug/verifyVerify attestation signature for a version
Parameters
version_hash·string(optional)Version hash to verify from DB
attestation·object(optional)Full attestation object to verify
Example
curl -X POST https://dormant.invalid/api/v1/collections/ai-ethics/verify \
-H "Content-Type: application/json" \
-d '{"version_hash": "abc123"}'Compliance Certificates
Prove your AI system integrates a specific version. Certificates are Ed25519-signed and publicly verifiable.
/api/v1/compliance/certificatesIssue a compliance certificate for your AI system against a pinned version
Parameters
version_hash·stringContent hash of the pinned version
system_name·stringName of your AI system
organization_name·stringYour organisation name
system_version·string(optional)Version of your AI system (e.g., 2.1.0)
attestation·string(optional)Free-text attestation of compliance
Example
curl -X POST https://dormant.invalid/api/v1/compliance/certificates \
-H "Content-Type: application/json" \
-d '{"version_hash": "abc123", "system_name": "My Bot", "organization_name": "Acme Corp"}'/api/v1/compliance/certificates/:id/verifyVerify a certificate — checks signature, expiry, revocation, and version currency
Parameters
id·stringCertificate ID (e.g., cert_xyz789abc)
Example
curl https://dormant.invalid/api/v1/compliance/certificates/cert_xyz789abc/verify/api/v1/compliance/certificates/:idGet full certificate details including signature, authority, and version info
Parameters
id·stringCertificate ID
Example
curl https://dormant.invalid/api/v1/compliance/certificates/cert_xyz789abc/api/v1/compliance/certificatesList certificates — filter by collection, organisation, or status
Parameters
collection·string(optional)Filter by collection slug
organization·string(optional)Filter by organisation name
status·string(optional)Filter: active, expired, or revoked
Example
curl "https://dormant.invalid/api/v1/compliance/certificates?collection=ai-ethics&status=active"Protocol Metrics
Stable JSON contract for analytics aggregators — TVL, participant counts, and epoch totals.
Protocol Metrics
Stable JSON contract for analytics aggregators (DeFi TVL trackers, Cardano dashboards). Requires the `read:metrics` scope. Schema version: `rationall.metrics.v1`.
/api/v1/metricsProtocol-level analytics: TVL breakdown by category (conviction stakes, conviction/proposal/moderation/governance bonds), participant counts, cumulative epoch distributions, and harvestable delegation rewards
Example
curl -H "x-api-key: YOUR_API_KEY" \
https://dormant.invalid/api/v1/metricsResponse Format
All endpoints return JSON by default. Use the format parameter for alternate formats.
{
"set_name": "AI Ethics Reference Set",
"type": "community",
"version": "2026-02-06T12:34:56.789Z",
"content_hash": "abc123def456",
"version_number": 2,
"is_current": true,
"published_at": "2026-02-06T12:00:00Z",
"total_claims": 15,
"claims": [
{
"rank": 1,
"content_hash": "a1b2c3d4e5f6...",
"content": "Every person deserves basic dignity",
"expanded": "AI systems must recognize and preserve...",
"conviction_score": 891,
"source_count": 12,
"topics": ["human-dignity", "personal-integrity"],
"domain": "morals",
"graph_centrality": 0.85
}
],
"metadata": {
"description": "Purpose-built reference set for AI alignment",
"domains": ["morals", "scientific", "policy"],
"api_docs": "https://rationall.io/docs/api"
}
}Integrating Rationall
Patterns for using Rationall's APIs to build agents that draw on the conviction graph. Start with the concepts, then pick the integration depth that fits your stack.
Skills, Tools, Datasources, Guardrails
Four orthogonal primitives — each operates at a different layer of an agent's pipeline. Use them together or independently depending on how deep you want to integrate.
Datasource
Where the data lives. Rationall's public REST API is the canonical datasource — every claim, edge, source, and collection.
Tool
Callable functions the agent invokes. @rationall/mcp-server wraps the API as MCP-native tools your agent calls without glue code.
Skill
How-to instructions injected into the system prompt. The built-in skill-rationall-graph teaches an agent how to query Rationall, cite claims, and handle disagreement.
Guardrail
Values overlay applied unconditionally. Pin ai-kidsafe-5-9 and every response respects those community-conviction values.
The built-in Rationall Graph skill (live)
This is the literal text Ask Rationall injects on every request. It's a collection — slug skill-rationall-graph— so its content is fetched, versioned, and verifiable like any other. Copy this to your own agent's system prompt and pair it with the public API (or the MCP server) to get the same baseline behavior. This is the dogfood: what we show you here is exactly what we use.
Collections as Guardrails
Pin one or more collections as a values overlayapplied to every answer. The server walks four degradation rungs to fit your model's token budget —full →editorial_summary →compressed_summary →tagline— and returns guardrailsApplied so you can see exactly which rung fit and which pins (if any) were dropped for budget.
Ask Rationall itself uses exactly the recipe below. Pin two or three collections on /ask, open your browser network tab, and inspect theguardrailsAppliedfield on the response — it's the live reference implementation of this docs page.
1. Single guardrail (the parent / kidsafe case)
# Single guardrail — server picks the best rung that fits the model budget.
# Response includes guardrailsApplied so you can see what was actually injected.
curl -X POST https://dormant.invalid/api/v1/ask \
-H "Content-Type: application/json" \
-d '{
"query": "Help me write a bedtime story about a brave fox.",
"guardrails": {
"collectionSlugs": ["ai-kidsafe-5-9"],
"intensity": "strict",
"injectMode": "auto"
}
}' | jq '.guardrailsApplied'
# {
# "resolved": [{ "slug": "ai-kidsafe-5-9", "injectedMode": "editorial_summary", "approxTokens": 320, ... }],
# "dropped": [],
# "budgetUsedTokens": 370,
# "intensityApplied": "strict"
# }2. Multi-pin with explicit mode (graceful degradation)
# Multi-pin with explicit budget — server walks rungs per pin.
# If even the smallest rung overflows, it drops the lowest-priority pins
# (last-pinned first) and surfaces what was dropped in guardrailsApplied.dropped.
curl -X POST https://dormant.invalid/api/v1/ask \
-H "Content-Type: application/json" \
-d '{
"query": "What should AI tutors avoid when a child asks about their body?",
"guardrails": {
"collectionSlugs": ["ai-kidsafe-5-9", "medical-ethics", "ai-ethics"],
"intensity": "strict",
"injectMode": "compressed_summary"
}
}' | jq '.guardrailsApplied'
# Honest surface: see exactly which overlay fit and which got dropped.
# Show this in your UX so users trust the response.3. Standalone fetch — inject into your own agent
# Standalone overlay fetch — inject Rationall guardrails into YOUR OWN agent.
# Same composer Ask Rationall uses internally. The four rungs degrade gracefully:
# full → editorial_summary → compressed_summary → tagline
curl "https://dormant.invalid/api/v1/collections/ai-kidsafe-5-9/guardrail-context?mode=auto&budgetTokens=300"
# {
# "slug": "ai-kidsafe-5-9",
# "name": "AI Kidsafe — Ages 5-9",
# "injectedMode": "compressed_summary",
# "approxTokens": 50,
# "text": "When responding to or about children aged 5–9: …",
# "availableModes": ["editorial_summary", "compressed_summary", "tagline"]
# }
# Inject text as a system-prompt prefix in your agent. The injectedMode field
# tells you which rung you got — surface it to your users for transparency.Working with small-context agents
Cheap or dev-tier models often have ≤300 token budgets — too small for full claim text. The composer falls back to the editorial summary, then the compressed (~150 word) summary, then the one-line tagline. If even the thinnest rung overflows, lowest-priority pins (last-pinned) are dropped entirely rather than silently truncated.
- Pass
budgetTokensmatching your real available context (model context − retrieved evidence − response budget). - Read
guardrailsApplied.droppedon every response — surface drops to your users so they understand what overlay actually ran. - Pin in priority order. The composer drops last-pinned first when budget is tight.
- For unattended agents, force
injectMode: "compressed_summary"so you get predictable overlay size regardless of how rich the collection becomes over time.
Integration patterns
Three ways to wire Rationall into an agent, in order of glue-code required.
Pattern 1 — Agent tool-calling via raw API
Call Rationall endpoints as tools in your agent's reasoning chain — search for claims, traverse the graph, then ask conviction-weighted questions. Works with any agent stack that can do HTTP.
import requests
BASE = "https://dormant.invalid/api/v1"
# 1. Search for relevant claims by meaning
search = requests.get(f"{BASE}/search/smart", params={
"q": "is privacy a fundamental right",
"limit": 5
}).json()
print(f"Found {search['count']} relevant claims")
for r in search["results"]:
print(f" [{r['similarity']:.0%}] {r['content'][:80]}...")
# 2. Get graph context for the top result
top_claim = search["results"][0]
context = requests.get(
f"{BASE}/graph/claims/{top_claim['id']}/context",
params={"depth": 2}
).json()
print(f"Connected to {len(context.get('edges', []))} other claims")
# 3. Ask Rationall for a synthesised answer
answer = requests.post(f"{BASE}/ai/ask", json={
"query": "What is the strongest argument for privacy?"
}).json()
print(f"Answer: {answer['response'][:200]}...")
print(f"Grounded in {len(answer['relevantClaims'])} claims")Pattern 2 — MCP server (no glue code)
Install @rationall/mcp-serverand your agent (Claude, Cursor, Cline, any MCP-compatible host) discovers six Rationall tools natively. No HTTP boilerplate; the agent calls them as functions. Pair with Pattern 1's skill content for the full integration recipe.
// Claude Desktop config
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"rationall": {
"command": "npx",
"args": ["-y", "@rationall/mcp-server"],
"env": {
"RATIONALL_API_URL": "https://dormant.invalid/api/v1",
"RATIONALL_API_KEY": "rtnl_your_key_here"
}
}
}
}Auditability
Prove your integration honors specific guardrails or collection versions to auditors, regulators, or your own users.
Compliance certificates & version pinning
Pin your AI system to a specific versioned collection, request a cryptographic compliance certificate, and verify it at runtime. Certificates are Ed25519-signed and can be checked by anyone — auditors, regulators, or the agent itself on every boot.
import requests
BASE = "https://dormant.invalid/api/v1"
# ── Step 1: Pin to a specific frozen version ──────────────────────────
ETHICS_VERSION = "abc123def456"
ethics = requests.get(
f"{BASE}/collections/ai-ethics/at/{ETHICS_VERSION}"
).json()
assert ethics["content_hash"] == ETHICS_VERSION
print(f"Loaded {ethics['total_claims']} principles (v{ethics['version_number']})")
# Inject into your AI system prompt
ethics_text = requests.get(
f"{BASE}/collections/ai-ethics/at/{ETHICS_VERSION}",
params={"format": "text"}
).text
system_prompt = f"""You are an AI assistant. Follow these ethical principles:
{ethics_text}
Always prioritise these principles in your responses."""
# ── Step 2: Request a compliance certificate ──────────────────────────
cert = requests.post(f"{BASE}/compliance/certificates", json={
"version_hash": ETHICS_VERSION,
"system_name": "Customer Support Bot",
"system_version": "2.1.0",
"organization_name": "Acme Corp",
"attestation": "All principles integrated and decision-logged"
}).json()
CERT_ID = cert["certificate_id"] # e.g. "cert_xyz789abc"
print(f"Certificate: {CERT_ID} (expires {cert['expires_at']})")
# ── Step 3: Verify certificate (anyone can call this) ─────────────────
v = requests.get(f"{BASE}/compliance/certificates/{CERT_ID}/verify").json()
assert v["valid"], "Certificate is not valid!"
print(f"Signature OK: {v['checks']['signature_valid']}")
print(f"Versions behind: {v['ethics_version']['versions_behind']}")
# ── Step 4: Agent self-check at startup ───────────────────────────────
def verify_compliance(cert_id: str) -> bool:
"""Call on every agent boot to confirm compliance is current."""
v = requests.get(f"{BASE}/compliance/certificates/{cert_id}/verify").json()
if not v["valid"]:
raise RuntimeError(f"Certificate {cert_id} is invalid")
if v["ethics_version"]["versions_behind"] > 2:
print(f"Warning: {v['ethics_version']['versions_behind']} versions behind")
return True
verify_compliance(CERT_ID)
# ── Step 5: Check for safe upgrades ───────────────────────────────────
latest = requests.get(
f"{BASE}/collections/ai-ethics/version"
).json()
if latest["content_hash"] != ETHICS_VERSION:
diff = requests.get(
f"{BASE}/collections/ai-ethics/diff",
params={"from": ETHICS_VERSION, "to": latest["content_hash"]}
).json()
if not diff["breaking_change"]:
print(f"Safe upgrade: +{diff['summary']['added_count']} claims")
else:
print("Breaking changes detected — review required")Quick Links
Need Help?
Join our developer community or contact support for assistance.
API Status
All systems operational