Skip to content

API Category · Document Intelligence

Send a photo or a scan and get the fields back as JSON. Smart OCR knows an Aadhaar from a PAN card and a payslip from a bank statement, so your systems receive clean, structured data instead of a wall of text.

catalogue · smart ocrEndpoints
POST/v1/aadhaar-masking
POST/v1/document-ocr
POST/v1/pan-ocr
POST/v1/aadhaar-ocr
POST/v1/passport-ocr
POST/v1/voter-id-ocr

+ more in this category

One key · one SLAJSON in · JSON out

Trusted Across Indian BFSI

Banks, NBFCs, housing finance companies and co-operative banks run verification, Aadhaar masking and document workflows on FinHub, inside their own compliance and audit requirements.

Aavas FinanciersAadhar Housing FinanceUtkarsh Small Finance BankShri Ram Finance CorporationKaabil FinanceChoice FinservWonder Home FinanceIFFCO Kisan FinanceSitaara Housing FinancePrüfens AdvisoryThane Bharat Sahakari Bank

In short

Smart OCR is FinHub's AI-based optical character recognition API for financial services. It reads Indian identity, banking, income and business documents and returns the fields on them as structured JSON, with quality and tamper signals on supported documents. It tells you what a document says. Whether that is true is a separate question, answered by a verification call.

  • Reads identity documents, bank and income documents, and business certificates
  • Returns named fields, ready for your onboarding journey or loan origination system
  • Checks the capture before extraction, so a poor photo is retaken while the customer is still there
  • Hosted in India

Reference

What Each API Returns

The endpoint and the fields that come back, so you can size the integration before you write any code.

APIEndpointKey fields returned
Aadhaar MaskingPOST /v1/documents/aadhaar/maskMasked document (last 4 digits visible) · Detected-number locations · Masking audit record
Document OCRPOST /v1/documents/ocrStructured fields (name, DOB, number, address…) · Document classification · Confidence scores · Tamper / authenticity signals
PAN OCRPOST /v1/ocr/panPAN number · Cardholder name · Date of birth · Document quality score · Tamper/quality flags
Aadhaar OCRPOST /v1/ocr/aadhaarAadhaar number (maskable) · Name · Date of birth · Address · Document quality flags
Passport OCRPOST /v1/ocr/passportPassport number · Name and gender · Date of birth · Address · Expiry date and place of birth
Voter ID OCRPOST /v1/ocr/voter-idEPIC number · Name · Date of birth · Document quality score · Tamper/quality flags
Driving License OCRPOST /v1/ocr/driving-licenseLicence number · Name · Date of birth · Expiry date · Document quality flags
Bank Statement OCRPOST /v1/ocr/bank-statementAccount holder and account number · IFSC and bank name · Transaction date, description and amount · Running balance · Document quality flags
Bank Cheque OCRPOST /v1/ocr/bank-chequeAccount number · IFSC code and bank name · Payee name and cheque number · Document quality flags
Cancelled Cheque OCRPOST /v1/ocr/cancelled-chequeAccount number · IFSC code and bank name · Account holder name (if printed) · Document quality flags
Salary Slip OCRPOST /v1/ocr/salary-slipEmployer name and employee ID · Earnings breakdown · Deductions breakdown · Net pay and pay period · Document quality flags
ITR OCRPOST /v1/ocr/itrPAN and filer name · Assessment year · Gross total income · Tax paid and refund details · Document quality flags
Invoice OCRPOST /v1/ocr/invoiceVendor name and GSTIN · Invoice number and date · Line items and total amount · Tax breakup (CGST/SGST/IGST) · Document quality score
Balance Sheet OCRPOST /v1/ocr/balance-sheetTotal assets and liabilities · Equity and reserves · Key line-item breakdown · Reporting period and currency · Document quality score
Utility Bill OCRPOST /v1/ocr/utility-billCustomer name and address · Service provider and account number · Bill date and due date · Billed amount · Document quality score
Insurance Policy OCRPOST /v1/ocr/insurance-policyInsurer name and policy number · Policyholder name · Sum assured and premium amount · Policy start and expiry dates · Document quality score
Mutual Fund OCRPOST /v1/ocr/mutual-fundFund house and scheme name · Folio number and investor name · Unit balance and NAV · Current market value · Document quality score
Passbook OCRPOST /v1/ocr/passbookAccount holder name · Account number and IFSC · Bank and branch name · Latest balance and transaction date · Document quality score
Pension Certificate OCRPOST /v1/ocr/pension-certificatePensioner name and PPO number · Sanctioning authority · Pension amount and category · Date of sanction · Document quality score
Death Certificate OCRPOST /v1/ocr/death-certificateDeceased name and registration number · Date and place of death · Issuing municipal or registrar authority · Date of registration · Document quality score
Shop Establishment OCRPOST /v1/ocr/shop-establishmentBusiness name and registration number · Registered address · Issuing authority and state · Validity or renewal date · Document quality score
KYC Form OCRPOST /v1/ocr/kyc-formCustomer name and address · PAN, Aadhaar or other ID numbers entered · Date of birth and contact details · Signature and form completeness status · Document quality score
Loan Agreement OCRPOST /v1/ocr/loan-agreementBorrower & lender name · Loan amount & currency · Tenure & interest rate · Repayment schedule · Field-level confidence scores
Legal Document OCRPOST /v1/ocr/legal-documentFull extracted text · Parties & signatories · Key dates & clause references · Document type classification · Processing status (sync/async)
Udyam Certificate OCRPOST /v1/ocr/udyam-certificateUdyam Registration Number (URN) · Enterprise name & type · Enterprise category (micro/small/medium) · Major activity · Registration date
GST Certificate OCRPOST /v1/ocr/gst-certificateGSTIN · Legal & trade name · Business constitution · Registration date · Principal place of business
Certificate of Incorporation OCRPOST /v1/ocr/incorporation-certificateCorporate Identification Number (CIN) · Registered company name · Company type & category · Date of incorporation · Registrar of Companies (RoC) jurisdiction
Credit Card OCRPOST /v1/ocr/credit-cardCard number · Cardholder name · Expiry date · Issuing network · Field-level confidence scores
Document to Text OCRPOST /v1/ocr/document-to-textFull extracted text · Per-line/word confidence scores · Detected language · Layout metadata
Document Quality CheckPOST /v1/ocr/document-quality-checkOverall quality score · Blur, glare & lighting flags · Crop / edge-detection status · Resolution assessment · Retake recommendation
Document IdentificationPOST /v1/ocr/document-identificationDetected document type · Classification confidence score · Side detection (front/back, where applicable) · Unsupported/ambiguous flag

What Smart OCR Reads

Identity, income, banking and business documents through one API

Every document below runs through the same authentication and comes back in the same response shape.

Identity documents. Aadhaar card, PAN card, passport, voter ID and driving licence.

Banking and income documents. Bank statements, passbooks, cheques and cancelled cheques, payslips (salary slips), income tax returns and credit cards.

Business and statutory documents. GST certificates, Udyam certificates, certificates of incorporation, shop establishment certificates, invoices and balance sheets.

Lending and legal documents. Loan agreements, legal documents and KYC forms.

Insurance, investments and other documents. Insurance policies, mutual fund statements, pension certificates, death certificates and utility bills.

Utilities that sit alongside them. Document identification, document quality check and document to text.

smart ocr · POST /v1/documents/ocrreading
Field · valueConfidence
document_typeAadhaar · front99%

How Smart OCR Works

From capture to clean data

Four steps, and the first one is the one most teams skip.

  1. 01Check the captureThe quality check looks at blur, glare, lighting, cropping and resolution, and recommends a retake when an image won't read well. Catching a bad photo while the customer is still holding the phone costs seconds. Catching it in a review queue costs a callback.
  2. 02Identify the documentSmart OCR works out what the file is, and which side of it you're looking at where that applies, so a mislabelled upload reaches the right model instead of failing quietly.
  3. 03Read the fieldsThe model for that document pulls out the named fields, with confidence scores and quality or tamper flags on the documents that support them.
  4. 04Hand it to your systemThe JSON goes into your onboarding form, your loan origination system or the next API in the chain. In most flows that next call is a verification, because reading a document and trusting it are two different steps.
smart ocr · POST /v1/ocr/document-quality-checkchecking
Resolution1536 x 1024 · sufficient
BlurWithin tolerance
CropAll four edges detected
GlareSpecular patch over the ID number

Recommend a retake. Tilt the card away from the light so the number is readable, then resubmit. No extraction has run.

Where Teams Use It

Four places Smart OCR earns its keep

  • Digital onboardingA customer photographs an identity document and the form fills itself in, so nobody types a twelve-digit number on a phone screen.
  • Loan file processingBank statements, payslips and income tax returns are read straight into your loan origination system instead of being keyed in by hand. When the credit team needs an assessment rather than the raw figures, the same files can go on to Document Analyzer.
  • Business onboardingGST, Udyam and incorporation certificates are read into your business verification checks, so a company's details arrive already structured.
  • Back-office digitisationLoan agreements, legal documents and KYC forms become searchable, structured records instead of scans in a shared drive.
api · POST /v1/kyc/verify
POST /v1/kyc/verify
Authorization: Bearer sk_live_••••
{ "pan": "XXXXXXXXXX", "consent_artifact": "ca_••••" }
OKVerified
{
"status": "verified",
"name_match": "high",
"dpdp_purpose_code": "LOAN_KYC",
"consent": "sealed"
}

Accuracy

What 95%+ means in practice

Smart OCR is built for 95%+ accuracy. What you see on your own files will move with the document type and the way it was captured.

A PAN card photographed flat in daylight is an easy read. A laminated Aadhaar shot under a branch tube light is harder, and a bank statement that has been photocopied twice is harder still. Regional-script fields, faded print and flash glare all pull the number down.

That is why the quality check is its own endpoint, and why sandbox access exists: run your actual mix of documents through it and measure what matters to your review queue. For more on what a misread field really costs, see the blog on the hidden cost of OCR errors.

smart ocr · same engine, three captures
Document · capture condition
PAN cardFlat, daylightClean read
Aadhaar cardLaminated, branch tube lightGlare flagged over the number
Bank statementPhotocopied twiceLow contrast, sent to review

Which is why the quality check is its own endpoint. Measure the number on your own captures, not on ours.

Where Your Documents Go

Hosted in India

Smart OCR runs on infrastructure hosted in India. In DPDP terms, your institution remains the data fiduciary and FinHub acts as a data processor on your behalf, so decisions about notice and consent stay with you.

If you need Aadhaar numbers redacted before documents are stored, that is a separate job handled by the Aadhaar Masking API, which you can run alongside Smart OCR.

smart ocr · processing regionin-region
regionap-south-1 · India
transferNone outside India
retentionYour policy, set per key

Under DPDP

Your institution

Data fiduciary

Decides notice and consent

FinHub

Data processor

Processes on your instruction

Redacting the Aadhaar number before you store the file is a separate call to the Aadhaar Masking API, not part of this response.

Reference

Reference: What Each Endpoint Returns

The endpoint and the fields that come back, so you can size the integration before you write any code.

Identity documents

DocumentEndpointKey fields returned
Aadhaar cardPOST /v1/ocr/aadhaarAadhaar number · Name · Date of birth · Address · Document quality flags
PAN cardPOST /v1/ocr/panPAN number · Cardholder name · Date of birth · Document quality score · Tamper/quality flags
PassportPOST /v1/ocr/passportPassport number · Name and gender · Date of birth · Address · Expiry date and place of birth
Voter IDPOST /v1/ocr/voter-idEPIC number · Name · Date of birth · Document quality score · Tamper/quality flags
Driving licencePOST /v1/ocr/driving-licenseLicence number · Name · Date of birth · Expiry date · Document quality flags

Banking and income documents

DocumentEndpointKey fields returned
Bank statementPOST /v1/ocr/bank-statementAccount holder and account number · IFSC and bank name · Transaction date, description and amount · Running balance · Document quality flags
PassbookPOST /v1/ocr/passbookAccount holder name · Account number and IFSC · Bank and branch name · Latest balance and transaction date · Document quality score
Bank chequePOST /v1/ocr/bank-chequeAccount number · IFSC code and bank name · Payee name and cheque number · Document quality flags
Cancelled chequePOST /v1/ocr/cancelled-chequeAccount number · IFSC code and bank name · Account holder name (if printed) · Document quality flags
Payslip (salary slip)POST /v1/ocr/salary-slipEmployer name and employee ID · Earnings breakdown · Deductions breakdown · Net pay and pay period · Document quality flags
Income tax returnPOST /v1/ocr/itrPAN and filer name · Assessment year · Gross total income · Tax paid and refund details · Document quality flags
Credit cardPOST /v1/ocr/credit-cardCard number · Cardholder name · Expiry date · Issuing network · Field-level confidence scores

Business and statutory documents

DocumentEndpointKey fields returned
GST certificatePOST /v1/ocr/gst-certificateGSTIN · Legal and trade name · Business constitution · Registration date · Principal place of business
Udyam certificatePOST /v1/ocr/udyam-certificateUdyam Registration Number (URN) · Enterprise name and type · Enterprise category (micro/small/medium) · Major activity · Registration date
Certificate of incorporationPOST /v1/ocr/incorporation-certificateCorporate Identification Number (CIN) · Registered company name · Company type and category · Date of incorporation · Registrar of Companies (RoC) jurisdiction
Shop establishment certificatePOST /v1/ocr/shop-establishmentBusiness name and registration number · Registered address · Issuing authority and state · Validity or renewal date · Document quality score
InvoicePOST /v1/ocr/invoiceVendor name and GSTIN · Invoice number and date · Line items and total amount · Tax breakup (CGST/SGST/IGST) · Document quality score
Balance sheetPOST /v1/ocr/balance-sheetTotal assets and liabilities · Equity and reserves · Key line-item breakdown · Reporting period and currency · Document quality score

Lending and legal documents

DocumentEndpointKey fields returned
Loan agreementPOST /v1/ocr/loan-agreementBorrower and lender name · Loan amount and currency · Tenure and interest rate · Repayment schedule · Field-level confidence scores
Legal documentPOST /v1/ocr/legal-documentFull extracted text · Parties and signatories · Key dates and clause references · Document type classification · Processing status (sync/async)
KYC formPOST /v1/ocr/kyc-formCustomer name and address · PAN, Aadhaar or other ID numbers entered · Date of birth and contact details · Signature and form completeness status · Document quality score

Insurance, investments and other documents

DocumentEndpointKey fields returned
Insurance policyPOST /v1/ocr/insurance-policyInsurer name and policy number · Policyholder name · Sum assured and premium amount · Policy start and expiry dates · Document quality score
Mutual fund statementPOST /v1/ocr/mutual-fundFund house and scheme name · Folio number and investor name · Unit balance and NAV · Current market value · Document quality score
Pension certificatePOST /v1/ocr/pension-certificatePensioner name and PPO number · Sanctioning authority · Pension amount and category · Date of sanction · Document quality score
Death certificatePOST /v1/ocr/death-certificateDeceased name and registration number · Date and place of death · Issuing municipal or registrar authority · Date of registration · Document quality score
Utility billPOST /v1/ocr/utility-billCustomer name and address · Service provider and account number · Bill date and due date · Billed amount · Document quality score

Any document, and the utilities

DocumentEndpointKey fields returned
Any supported document (auto-classify)POST /v1/documents/ocrStructured fields (name, DOB, number, address…) · Document classification · Confidence scores · Tamper / authenticity signals
Document to textPOST /v1/ocr/document-to-textFull extracted text · Per-line/word confidence scores · Detected language · Layout metadata
Document quality checkPOST /v1/ocr/document-quality-checkOverall quality score · Blur, glare and lighting flags · Crop / edge-detection status · Resolution assessment · Retake recommendation
Document identificationPOST /v1/ocr/document-identificationDetected document type · Classification confidence score · Side detection (front/back, where applicable) · Unsupported/ambiguous flag

Compare

Smart OCR vs a General OCR Engine

General OCR engineFinHub Smart OCR
What you get backA block of text to parse yourselfNamed fields as JSON
Document awarenessDoesn't know what it is readingIdentifies the document and returns the fields that belong to it
Indian layouts and scriptsYou tune and maintain itBuilt for Indian document layouts and regional script fields
Capture qualityWhatever you send is what you getQuality check flags blur, glare and cropping before extraction
Tamper signalsNot part of the toolTamper and quality flags on supported documents
Template upkeepYour team, every time an issuer redesigns a formOurs

Terms

Terms Worth Getting Right

The distinctions that decide whether a flow stands up under examination.

OVD (officially valid document)
The identity and address documents a regulated entity may accept for KYC, such as a passport, driving licence or voter ID. Which documents qualify for a given product is a question for your compliance team.
Confidence score
The model's own estimate of how sure it is about a field. Teams use it to decide which extractions to accept automatically and which to send to a person.
Document classification
Working out what a file is before reading it. It keeps a payslip from being run through a bank statement model, and it routes uploads by what they actually are rather than by the box the customer ticked.

FAQ

Smart OCR, Common Questions

Smart OCR is FinHub's AI-based OCR API for Indian financial services. It reads identity, banking, income and business documents and returns the fields on them as structured JSON, with quality and tamper signals on supported documents.

Try Smart OCR on your own documents

Sandbox access with your real document mix, so you can measure accuracy on your captures rather than ours.