Documents & Records
Query student records, analysis jobs, and document data via oRPC or REST.
The documents API is built on oRPC — a type-safe RPC layer. All procedures are reachable via POST /api/rpc/{router}/{procedure}.
How oRPC calls work
Every procedure is a POST request where the body is the procedure input:
On success the response body is the output directly (no wrapper). On error:
List user documents
Body
Response
Get student records for a file
Body
Response
Get analysis job for a file
Body
Response
Get file statistics
Body
Response
Get page records with LLM refinement
Returns records for a specific page, optionally triggering LLM refinement if not yet run.
Body
Response
Trigger LLM refinement for a page
Body
Response
Update a student record
Body
Response
Delete a student record
Body
Response
Confirm subject groups
After LLM analysis, confirm or override the detected subject column groupings.
Body
Response
Get file chunks
Raw OCR chunks for a file — useful for debugging extraction quality.
Body
Response