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

All API requests require an API key. Pass it in one of these headers:

Example: curl -H "X-API-Key: YOUR_KEY" https://api.prereason.com/api/btc

Get your free API key — no credit card required.

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

Other Endpoints

Response Format

Markdown responses include: signal direction (bullish/bearish/neutral), confidence score (0-100), 7d/30d/90d trend changes, percentile ranking against historical distribution, cross-asset correlation coefficients, and narrative text (Pro tier).

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

5 tools available: get_context, get_metric, list_briefings, list_metrics, get_health

Available Briefings

Browse all briefings | Browse all metrics