decomposition.ai API
All research feeds, certificate metadata, Markdown discovery endpoints, and the streaming matrix explanation endpoint are public and unauthenticated under https://decomposition.ai.
01 / Authentication & CORS
Public read and compute access with permissive CORS headers.
No API key, OAuth flow, or account registration is required. All JSON and Markdown feeds send Access-Control-Allow-Origin: * and expose an HTTP Link header pointing to https://decomposition.ai/llms.txt.
02 / Endpoints
Machine-readable specs in /openapi.json.
| Method | Endpoint | Format | Purpose |
|---|---|---|---|
| GET | /api/papers.json | application/json | All 30 published Zenodo preprints with DOIs, abstracts, theorems, PDF/ZIP links, and BibTeX. |
| GET | /api/bounds.json | application/json | Complete registry of all 93 exact verified results, prior literature baselines, and deltas. |
| POST | /api/explain | text/event-stream | Streams step-by-step AI explanations for LU, QR, SVD, Cholesky, Eigen, Schur, LDLᵀ, Jordan, or Ax = b. |
| GET | /openapi.json | application/openapi+json | OpenAPI 3.1.0 machine-readable schema with operationIds and response types. |
| GET | /llms.txt | text/plain | Concise Markdown index of research results, tools, and endpoints for AI agents. |
| GET | /llms-full.txt | text/plain | Single-file full Markdown corpus containing abstracts, theorems, bounds, verifiers, and BibTeX. |
03 / Example Requests
Direct curl invocations for feeds, streaming explanations, and Markdown negotiation.
Fetch all 93 verified bounds as JSON:
curl -sS https://decomposition.ai/api/bounds.json
Request the homepage as Markdown (content negotiation):
curl -sS -i -H 'Accept: text/markdown' https://decomposition.ai/
Stream an explanation for an LU decomposition:
curl -N -X POST https://decomposition.ai/api/explain \
-H 'Content-Type: application/json' \
-d '{"matrix":[[2,1],[1,3]],"type":"lu","question":"Explain the pivots and factors."}'
04 / Structured Errors & 404s
Predictable JSON errors on /api/* and Markdown 404s for agent clients.
Invalid requests to /api/* return structured JSON objects containing machine-readable code, error, message, hint, and docs fields:
{
"code": "invalid_request",
"error": "Missing matrix or type",
"message": "Request body must include a numeric 2D array `matrix` and a supported decomposition `type`.",
"hint": "Supported types: lu, qr, svd, cholesky, eigen, schur, ldl, jordan, solve.",
"docs": "https://decomposition.ai/docs/"
}
Nonexistent paths return HTTP 404 with a clean HTML page for browsers, a structured JSON body for /api/* or Accept: application/json, and a Content-Type: text/markdown response linking to /llms.txt and /sitemap.xml when requested with Accept: text/markdown.