---
title: Aadhaar Extraction
slug: api-marketplace/aadhaar-extraction
description: Our document provides detailed information about the Aadhaar extraction API, which enables financial institutions to swiftly and precisely extract data from Aadhaar identity cards. This API automates the extraction process for crucial details like the Aad
createdAt: 2023-04-19T11:38:42.000Z
---

### Introduction

The Aadhaar extraction API is a powerful tool that makes reading information from Aadhaar identity cards fast and precise. It's especially helpful for financial institutions. By automatically pulling out key details like the Aadhaar number, name, and birth date, this API streamlines processes such as identity verification and KYC procedures. Instead of manual entry, which can be time-consuming and prone to errors, financial institutions can ensure more accurate customer records and more efficient onboarding.

### Pre-requisite

Before going for Auto reading or Verification calls, you first need to create an Identity object. To get an overview of the ID verification process visit here. For best results, please make sure that the image you use fits tightly in the camera view and is horizontally aligned. Each&#x20;
image/pdf should be less than 2MB and expired image should not be&#x20;
uploaded.

Though this engine support extraction of images as well as pdf files, our test results indicate that there is much better accuracy and faster response time for image extraction. We would suggest you to pass only image file for better results. For pdf files extacrtion, you can use our pdf to image converter API and then pass the resulted image file in this extraction engine.[Pdf to Image(JPG).](https://docs-preproduction.signzy.tech/pdf-to-jpg)

***

### API Endpoint's

### Identity Object

:::CodeblockTabs
UAT Endpoint

```text
POST https://preproduction.signzy.tech/api/v2/patrons/<patron-id>/identities
```
:::

:::CodeblockTabs
Production Endpoint

```text
POST https://signzy.tech/api/v2/patrons/<patron-id>/identities
```
:::

### Headers

| Key           | Value                                                |
| ------------- | ---------------------------------------------------- |
| Authorization | access token (returned as id field of login request) |
| Content-type  | application/json                                     |

### Request Data

```json
{
    "type": "aadhaar",
    "email": "admin@signzy.com",
    "callbackUrl": "https://your-domain.com/your-callback-system",
    "images": [
        "<urls-to-uploaded-files>", "<urls-to-uploaded-files>"
    ]
}
```

| PARAMETERS  | DESCRIPTION                                                                                                                                                                             | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------ |
| type        | **Supported type parameter for creation of Identity objects**<br />- individualPan<br />- businessPan<br />- aadhaar<br />- passport<br />- drivingLicence<br />- cheque<br />- voterid | String | COMPULSORY                     |
| email       | E-mail can't be empty                                                                                                                                                                   | String | COMPULSORY                     |
| callbackUrl | callbackUrl is where the data is posted on each activity performed on this Identity object.                                                                                             | String | COMPULSORY                     |
| images      | urls's to be extracted                                                                                                                                                                  | List   | COMPULSORY                     |

### Response

```json
{
              "type": "aadhaar",
              "email": "admin@signzy.com",
              "callbackUrl": "https://your-domain.com/your-callback-system",
              "images": [
                "<urls-to-uploaded-files>","<urls-to-uploaded-files>"
              ],
              "autoRecognition": [],
              "verification": [],
              "forgeryCheck": [],
              "accessToken": "..access-token-for-the-snoop-request..",
              "id": "..itemId-for-the-snoop-request....",
              "patronId": "..your-id-into-signzy-system-(userId-returned-from-the-login-call).."
            }

```

***

### Snoops

:::CodeblockTabs
UAT Endpoint

```text
POST https://preproduction.signzy.tech/api/v2/snoops
```
:::

:::CodeblockTabs
Production Endpoint

```text
POST https://signzy.tech/api/v2/snoops
```
:::

### Headers

| Key           | Value                                                |
| ------------- | ---------------------------------------------------- |
| Authorization | access token (returned as id field of login request) |
| Content-type  | application/json                                     |

### Request Data

```json
{
    "service":"Identity",
    "itemId":"<..itemId-from-the-Identity-Object-request....>",
    "task":"autoRecognition",
    "accessToken":"<..access-token-from-the-Identity-Object-request..>",
    "essentials":{}
}
```

| PARAMETERS  | DESCRIPTION                                                                                                       | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ----------- | ----------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------ |
| service     | Category it belongs to                                                                                            | String | COMPULSORY                     |
| itemId      | id parameter value returned from the Identity Object creation request.                                            | String | COMPULSORY                     |
| task        | Task can be<br />- autoRecognition<br />- verification<br />- fetch                                               | String | COMPULSORY                     |
| accessToken | accessToken parameter value returned from the Identity Object creation request.                                   | String | OPTIONAL                       |
| essentials  | essentials will be empty in case of autoRecognition, but required input values needed for verification and fetch. | Object | COMPULSORY                     |

### Response

```json
{
        "service": "Identity",
        "itemId": "...id....",
        "task": '"autoRecognition"',
        "essentials": {},
        "accessToken": "...access token from identity request...",
        "id": "...id...",
        "response": {
            "files": [
                "...image url..."
            ],
            "id": ..xx..,
            "instance": {},
            "result": {
                "uid": "...00000000XXXX....masked first eight digit...",
                "vid": "...virtual UID...",
                "name": "...name on id card...",
                "yob": "...year of birth...",
                "dob": "...date of birth...",
                "pincode": "...pincode...",
                "address": "...address as on card...",
                "gender": "male/female",
                "splitAddress": {
                    "district": [],
                    "state": [
                        []
                    ],
                    "city": [],
                    "pincode": " ",
                    "country": [
                        "IN",
                        "IND",
                        "INDIA"
                    ],
                    "addressLine": ""
                },
                "uidHash": "Secure Cryptographic conversion of UID",
                "summary": {
                    "number": "...00000000XXXX....masked first eight digit...",
                    "name": "...name on id card...",
                    "dob": "...date of birth...",
                    "address": "...address as on card...",
                    "splitAddress": {
                      "state": [
                        []
                      ],
                      "district": [],
                      "city": [],
                      "pincode": "...pincode...",
                      "country": [
                        "IN",
                        "IND",
                        "INDIA"
                      ],
                      "addressLine": "...addressLine..."
                    },
                    "gender": "male/female",
                    "guardianName": "",
                    "issueDate": "",
                    "expiryDate": ""
                    "dateOfBirth": "...date of birth..."
                     },
                    "validBackAndFront": "True/False",
                    "dateOfBirth": "...date of birth..."
                }
            }
        }
    }
```

