LLM-powered document analysis that produces /check input
/check endpoint. This is the bridge between raw document text and structured compliance checking.
Note: This endpoint calls an LLM and may take 5-15 seconds to respond.
gary-r-brown)edny)motion_for_summary_judgment.pdf). Helps the LLM classify ambiguous
documents.POST /api/v1/check. Includes judge_slug,
district_id, document_scope, motion_type (if detected), and the full document object.| Code | Meaning |
|---|---|
400 | Invalid request (missing text, invalid judge_slug, etc.) |
403 | District not accessible |
502 | LLM classification failed (timeout, invalid response, etc.) |
check_request field in the classify response is designed to be passed directly as the body to /check with no modification needed. You can also inspect the classification to show the user what was detected before running the compliance check.