Aadhaar Front Extraction


Request Method :: POST
Description: This API facilitates the extraction of the provided Aadhaar Front image. Extraction is initiated only if the request includes the appropriate Client Credentials in the headers, with corresponding privileges verified from the JWT.
The supported input formats for the Aadhaar Front image are as follows:
  1. JSON Format : The image is provided as a URL within a JSON payload.
  2. Base64 Format : The image is provided as a Base64-encoded string.
  3. File Format : The image is uploaded as a file using multipart form data.
Each format serves different use cases, enabling flexibility for integration with various systems. The API ensures secure access by validating Client Credentials and corresponding privileges before proceeding with the extraction process

Headers


Content-Type: application/JSON
client_id:  To be shared during integration by ISU Team
client_secret:  To be shared during integration by ISU Team

Request Body Parameters

Parameters Parameter description with validations and examples Data type Mandatory/Optional
image Aadhaar Front Image
Input key (JSON format with URL).
E.g. - "https://firebasestorage.googleapis.com/..."
String Mandatory

Sample Request Body


Response Body Parameters

Parameters Parameter description with examples Data type
code Status of the performed action. String
data Description of the other items on the document.  
DOB Date of Birth of the user. string
aadhaarNumber User’s Aadhaar Number. String
confidence Extraction Accuracy number
details This section contains different extracted labels in the documents and the accuracy with which the extraction process is done.  
DOB Extracted DOB Details  
confidence Accuracy of the extracted DOB. number
text Extracted DOB String
aadhaarNumber Extracted Aadhaar Number Details  
confidence Accuracy of the extracted Aadhaar Number. number
isVerified Is Verified or not. boolean
text Extracted Aadhaar Number. String
gender Extracted Gender Details  
confidence Accuracy of the extracted Gender. number
text Extracted Gender. String
issueDate Extracted Date of issue details  
confidence Accuracy of the extracted Issue Date number
text Extracted Issue Date String
name Extracted Name Details  
confidence Accuracy of the Extracted Name number
text Extracted Name String
photo Extracted Photo Details  
confidence Accuracy of the Extracted Photo number
vid Extracted VID Details  
confidence Accuracy of the extracted VID. number
text Extracted VID String
father Name of Father string
gender Gender string
idType ID Type. Will be "AADHAARFRONT" in this case. String
issueDate Date of Aadhaar Issue. String
name Name String
validate Validate or not boolean
devMsg The developer message, after the operation. string
message Front-end message displayed after the operation. string
status Status of the operation.
0 denotes a Successful Request.
-1 denotes an Unsuccessful Request.
number

Sample Response Body


SUCCESS:

 

FAILED:

Segmentation Failed:

No Input Image:

Issue with Image Quality:

Classification Failed:

Status Codes and description

Status HTTP Code Description
0 200 Data retrieved successfully
-1 400 Please Try Again
-1 400 Invalid Request
-1 422 Valid AADHAARFRONT Document Not Detected From Image (Issues with the image quality of valid AADHAARFRONT documents).
-1 435 Aadhaar Bottom Front Document not in the correct format.