Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Endpoints

Complete API reference for the public oculr endpoints. Each endpoint has its own page with request, response, errors, and a worked example.

Base URL: https://mpp.oculr.xyz

All /explain* endpoints require MPP/x402 payment. Discovery surfaces (/openapi.json, /tool-spec.json, /SKILL.md, /llms.txt, /health) are free to fetch.

Endpoints

MethodPathPurposePage
POST/explainSynchronous analysis over metered SSE - the final event is the resultPOST /explain
POST/explain/asyncNon-blocking - returns a jobId immediatelyPOST /explain/async
GET/result/:jobIdPoll an async job - each poll collects the cost accrued since the last one; the first poll after it finishes charges the true-upGET /result/
GET/healthService health probe (free)GET /health
GET/openapi.jsonOpenAPI 3.1 spec (free)Discovery
GET/tool-spec.jsonTyped Anthropic + OpenAI tool-use schemas (free)Discovery
GET/SKILL.mdProse entry point for agents (free)Discovery
GET/llms.txtDiscovery index for LLM crawlers (free)Discovery

Response headers

Every response includes:

HeaderValue
X-Oculr-Version1
X-Oculr-Cost-Modelmpp-x402
Link</SKILL.md>; rel="describedby", </openapi.json>; rel="describedby", </tool-spec.json>; rel="describedby" (RFC 5988)

The ExplanationResult schema

Returned by POST /explain and by GET /result/:jobId when the job completes. Documented in detail on the POST /explain page.

Related