Intake + Extraction
- • Receipt OCR text ingestion endpoint
- • Email/chat/upload source tracking
- • Structured claim drafts and auto-categorization
ClearLedger AI
Claims intake, policy enforcement, approvals, audit events, operational analytics, and payout-readiness workflows in one system.
The backend now exposes production-oriented claims, policy, workflow, and analytics endpoints.
| Method | Path | Description |
|---|---|---|
| GET | /api/health | Runtime and DB readiness |
| GET | /api/claims | Filtered claim listing with pagination |
| POST | /api/claims | Create and policy-score a claim |
| GET | /api/claims/:id | Claim details with approvals/comments/events |
| POST | /api/claims/:id/actions | Advance/reject/reopen workflows |
| POST | /api/claims/:id/comments | Attach internal audit comments |
| GET | /api/insights | Operational metrics and activity feed |
| GET/PATCH | /api/policy | Read/update organization policy thresholds |
| POST | /api/ingest | Parse receipt text and optionally create claims |