Document Intelligence · Classification
Automatically detect what kind of document was just uploaded — PAN, Aadhaar, passport, cheque and more — before routing it to the right extraction or verification flow.
Overview
What the Document Identification API does
FinHub's Document Identification API classifies an uploaded image or PDF into its document type, so onboarding and back-office pipelines can route each upload to the correct OCR or verification API without asking the customer to self-select. It returns a confidence-scored classification and flags ambiguous or unsupported documents, with consent capture and a tamper-evident audit log on every call.
Inputs
- Document image or PDF
- Candidate document types
- Consent artifact ID
Returns
- Detected document type
- Classification confidence score
- Side detection (front/back, where applicable)
- Unsupported/ambiguous flag
POST /v1/ocr/document-identification
How it works
Three steps to a verified result
Upload the document
Send any document image or PDF with a consent artifact over a single authenticated call — no manual type selection needed.
We classify the document
FinHub's classification models identify the document type — PAN, Aadhaar, passport, cheque and more — and score their confidence.
Get a routing decision
Receive the detected type and confidence score in real time, ready to route the document to the matching OCR or verification API — sealed to your audit trail.
Use cases
Where teams use Document Identification
- Auto-routing uploads in KYC and onboarding flows
- Sorting mixed document batches for back-office processing
- Reducing manual document-type selection errors
- Pre-classification step ahead of specialized OCR APIs
FAQ
Document Identification API — FAQs
Common questions about FinHub's Document Identification API.
It identifies common Indian identity and financial documents such as PAN, Aadhaar, passport and cheques, and flags documents it can't confidently classify.
More verification APIs
Explore related APIs
Ready to add Document Identification to your flow?
Book a demo and see the API return a verified result on your own test data in minutes.