Generic OCR

The Generic OCR API enables extraction of structured data from uploaded documents such as Aadhaar, PAN, Voter ID, Passport, and Driving License. Users can upload an image or PDF file along with the document type, and the API processes the file using Optical Character Recognition (OCR) to identify and extract relevant information. The extracted data is returned in a structured format, making it suitable for automated data entry, KYC processes, and document verification workflows. This API supports multiple document types through a single endpoint, reducing integration complexity and enabling faster onboarding. It ensures efficient, accurate, and scalable document data extraction for various use cases.

post/verify/ocr

Request

  • Base URL
    https://prod.idto.ai
  • URL
    https://prod.idto.ai/verify/ocr
  • Auth
    API key in header X-Client-ID and API key in header X-API-KEY

Request body multipart/form-data

filestring binary required

Upload JPG, PNG or PDF file

type'aadhaar' | 'pan' | 'voter' | 'passport' | 'dl' required

Document type for OCR

Example request

{
  "type": "aadhaar"
}

Response

Successful OCR Response

statusstring

Example response

{
  "status": "success",
  "results": [
    {
      "type": "aadhaar_front_bottom"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.