Validate document quality, detect document type, and check readability
| Document Type | Code | Description |
|---|---|---|
| PAN Card | ind_pan | Indian PAN Card |
| Aadhaar Card | ind_aadhaar | Indian Aadhaar Card (front/back) |
| Voter ID | ind_voter_id | Indian Voter ID (EPIC) |
| Driving License | ind_driving_license | Indian Driving License |
| Passport | ind_passport | Indian Passport |
| RC | ind_rc | Vehicle Registration Certificate |
| Field | Type | Description |
|---|---|---|
detected_doc_type | string | Auto-detected document type or “not_detected” |
is_readable | boolean | Whether document is readable and of sufficient quality |
readability_confidence | integer | Quality score (0-100) |
face_detected | boolean | Whether a face was found in the document |
is_scanned | boolean | Whether document appears to be a scanned copy |
detected_doc_side | string | Document side: “front”, “back”, or “both” (if enabled) |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Publicly accessible URL of the document image to validate. Must use HTTP or HTTPS protocol. Document should not exceed 3MB.
2048"https://example.com/documents/pan_card.jpg"
Expected document type (optional). When provided, improves accuracy of validation. If omitted, system will auto-detect document type.
ind_pan, ind_aadhaar, ind_voter_id, ind_driving_license, ind_passport "ind_pan"
Enable face detection in the document. Useful for documents that typically contain photos (Aadhaar, Passport, DL).
true
Enable document side detection (front/back/both). Helps identify which side of a two-sided document is provided.
true
Enable scan detection to determine if document is a scanned copy. Useful for distinguishing between original photos and scanned documents.
true
Document validation successful
Overall status of the API
success, error HTTP status code
400
Description of the response or error
"Invalid request parameters"
Number of credits consumed for this operation
x >= 05
Remaining credits in user account after this operation
x >= 095