Getting started
Lumen extracts checkable facts from PDF documents, grounds every claim to its exact source page, and reasons about relationships — detecting which facts corroborate, contradict, or reconcile across your uploads.
The REST API is completely open at https://lumen-obli.onrender.com. No authentication keys or signup are required to upload files or query the reasoning graph.
Protocol & conventions
All upload requests must be sent as multipart/form-data with the file included under the file parameter. Responses are returned as standard UTF-8 JSON.
Documents with 2 pages or fewer are processed synchronously and return extracted facts immediately. Larger documents return 202 Accepted and process in the background; you can poll the status endpoint until complete.
Upload a document
/v1/documentsUploads a PDF for chunking, text & OCR extraction, entity-attribute-value fact extraction, and cross-document relationship reasoning.
Document status
/v1/documents/:id/statusPoll this endpoint while a document is processing. Status transitions from processing to done or error.
List facts
/v1/documents/:id/factsReturns paginated facts extracted from the document along with cross-document relationship counts.
Single fact & relationships
/v1/facts/:idRetrieves an individual fact with its verbatim quote, source chunk text, page number, and any corroborating or contradictory relationships with other facts.
Original PDF
/v1/documents/:id/fileStreams the raw uploaded PDF binary with Content-Type: application/pdf. Suitable for embedding in an <iframe> or passing to PDF.js.
Errors
All endpoints return an error JSON object with an HTTP 4xx or 5xx status code on failure — 404 for unknown document or fact IDs, 400 for a missing upload file, and 500 for unexpected server errors.