Documentation index: /llms.txt. Full docs in Markdown: /docs.md (the same text as /llms-full.txt).


PreReason API Documentation

Complete API reference for the PreReason market context API. Financial data optimized for AI agents, delivered in markdown or JSON format.

Authentication

Briefings and metric readings need an API key (or, on the short URLs, metric readings and company routes, an x402 payment per call); the catalogue and health check need none. Pass a key in one of these headers:

Example: curl -H "Authorization: Bearer YOUR_KEY" https://api.prereason.com/api/btc

Get your free API key — no credit card required.

An agent can get a key from inside its session: POST https://api.prereason.com/api/agent/claims starts a claim, the person it works for approves one link, and the key reaches the agent when it polls. auth.md has the whole flow.

Primary Endpoint: GET /api/context

Returns a pre-reasoned market briefing for the requested domain.

Parameters

Example: GET /api/context?briefing=btc.context&format=markdown

Short URL Shortcuts

Company Briefings

One listed company per call, each figure dated and sourced: GET /api/context?briefing=equities.company/<company> with a key on the plans that read it, or GET /api/companies/<company> paid per call with x402 and no key. 3,002 USA company briefings as of 2026-10-07, 1,546 Japanese company briefings as of 2026-10-06, 2,533 Korean company briefings as of 2026-10-07, 232 Indian company briefings as of 2026-10-07, 464 company briefings for companies filing in the UK as of 2026-10-15 and 822 company briefings for companies filing in 11 European countries as of 2026-10-15.

Other Endpoints

Response Format

Markdown responses include: a tag on each metric (Bullish, Bearish or Neutral on crypto native metrics such as Bitcoin and Ether; on every other metric Above-Trend, Below-Trend or At-Trend, where the value sits against its trend), confidence score (0-100), 7d/30d/90d trend changes, percentile ranking against historical distribution, and cross-asset correlation coefficients.

JSON responses include the same data in structured key-value format with typed fields.

Rate Limits

Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

MCP Server Integration

Install the PreReason MCP server for native tool access in Claude Desktop, Claude Code, Cursor, and Windsurf.

Install: npx -y @prereason/mcp

Set environment variable PREREASON_API_KEY to your API key.

Remote MCP endpoint: https://api.prereason.com/api/mcp

7 tools available: get_context, get_metric, get_changes, get_news, list_briefings, list_metrics, get_health

Available Briefings

Browse all briefings | Browse all metrics