---
title: KYC ID QR verification API
slug: api-marketplace/kyc-id-qr-verification-api
createdAt: 2025-09-15T06:31:49.892Z
---



## Introduction

Th&#x65;**&#x20;KYC ID QR verification API** offers a fast and efficient solution for real-time KYC ID verification. It confirms data authenticity and extracts key personal details like name, date of birth, and gender directly from the QR code for secure validation.

**Key Benefits:**

- **Fraud Prevention:** Ensures only genuine KYC ID cards are used, reducing fraud risk.
- **Error-Free:** Automates data entry, eliminating manual mistakes and enhancing accuracy.
- **Precision:** Provides real-time, accurate data extraction.
- **Faster Onboarding:** Speeds up user onboarding with instant data retrieval.

This solution enhances security, prevents errors, and accelerates onboarding, making it vital for identity management and fraud prevention.

**Current accuracy:** 92%

**Constraint:** Image should be clear enough for QR to be captured without noise.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/identityQR/verifyAndFetchDetails
```
:::

:::CodeblockTabs
UAT Endpoint

```text
   POST https://api-preproduction.signzy.app/api/v3/identityQR/verifyAndFetchDetails
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                                                                  | **Required** |
| ------------- | ------------- | -------------------------------------------------------------------------------- | ------------ |
| url           | String        | The URL of the KYC ID QR image.<br />Format supported should be .jpg/.jpeg, .png | Mandatory    |
| consent       | String        | Consent of user<br />Y, N<br />It has to be Y to process the request             | Mandatory    |

```json
{
    "url": "https://persist.signzy.tech/api/files/1328712340/download/XXXX.jpeg",
    "consent": "Y"
}
```

***

### Request Headers

| **Name&#x20;** | **Value**        | **Required** | **Description**                                                                                            |
| -------------- | ---------------- | ------------ | ---------------------------------------------------------------------------------------------------------- |
| Content-type   | application/json | Mandatory    | The type of content that the request body contains.                                                        |
| Authorization  | XXXXXXXXXXXXXXX  | Mandatory    | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Code Samples

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/identityQR/verifyAndFetchDetails' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth_key>' \
--data '{
    "url": "https://persist.signzy.tech/api/files/1328712340/download/XXXX.jpeg",
    "consent": "Y"
}

    '
```

Node.js

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "image": "<Image url of the aadhaar card qr code>"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/aadhaarQR/verifyAndFetchDetails',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Authorization token>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

Python

```python
import http.client
import json

conn = http.client.HTTPSConnection("api-preproduction.signzy.app")
payload = json.dumps({
  "image": "<Image url of the aadhaar card qr code>"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Authorization token>'
}
conn.request("POST", "/api/v3/aadhaarQR/verifyAndFetchDetails", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

GO

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/aadhaarQR/verifyAndFetchDetails"
  method := "POST"

  payload := strings.NewReader(`{
    "image": "<Image url of the aadhaar card qr code>"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<Authorization token>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| **Parameter**                      | **Data Type** | **Description**                                                                                                                                                                  |
| ---------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| result                             | Object        | Contains the response for the KYCID card holder.                                                                                                                                 |
| result.isQRVerified                | String        | Possible values are true, false and empty string.<br />true, if QR code is verified<br />false, if QR code is not verified<br />empty string, if QR code is not digitally signed |
| result.isQRSecure                  | String        | Represents if the QR code is secure or not<br />true, if QR code is secure<br />false, if QR code is not secure                                                                  |
| result.demographicData             | Object        | Demographic data of the aadhaar card holder                                                                                                                                      |
| result.demographicData.name        | String        | Name of the aadhaar card holder                                                                                                                                                  |
| result.demographicData.dob         | String        | The data of birth of the aadhaar card holder                                                                                                                                     |
| result.demographicData.gender      | String        | Gender of the KYC ID card holder                                                                                                                                                 |
| result.demographicData.pincode     | String        | Pincode of the KYC ID card holder                                                                                                                                                |
| result.demographicData.postOffice  | String        | Postoffice of the KYC ID card holder                                                                                                                                             |
| result.demographicData.state       | String        | state of the KYC ID card holder                                                                                                                                                  |
| result.demographicData.district    | String        | District of the KYC ID card holder                                                                                                                                               |
| result.demographicData.subDistrict | String        | Subdistrict of the KYC ID card holder                                                                                                                                            |
| result.demographicData.vtc         | String        | Village/town/city of the KYC ID card holder                                                                                                                                      |
| result.demographicData.landmark    | String        | Landmark of the KYC ID card holder                                                                                                                                               |
| result.demographicData.street      | String        | Street of the KYC ID card holder                                                                                                                                                 |
| result.demographicData.location    | String        | Location of the KYC ID card holder                                                                                                                                               |
| result.demographicData.kycId       | String        | Masked kycId of the KYC ID card holder                                                                                                                                           |
| result.demographicData.careOf      | String        | CareOf of the KYC ID card holder                                                                                                                                                 |
| result.demographicData.house       | String        | House no of the KYC ID card holder                                                                                                                                               |
| result.demographicData.yob         | String        | Year of birth of the KYC ID card holder                                                                                                                                          |

:::CodeblockTabs
200

```json
{
    "result": {
        "isQRVerified": "true",
        "isQRSecure": "true",
        "demographicData": {
            "name": "Nikhil Patra",
            "dob": "09/05/2001",
            "gender": "M",
            "pincode": "768106",
            "postOffice": "",
            "state": "Maharastra",
            "district": "Nanded",
            "subDistrict": "",
            "vtc": "Jay S.O",
            "landmark": "NEAR CHOTA AYACHIT MANDIR",
            "street": "",
            "location": "678,CHOTA CHAUK,Jay",
            "kycId": "XXXXXXXX8922",
            "careOf": "S/O Naba Patra",
            "house": "",
            "yob": "2001"
        }
    },
    "message": "Success",
    "reason": "REQUEST_SUCCESSFUL",
    "code": "S001"
}
```

400

```json
[
  // Passing multiple QRs in the same image
  {
    "result": {},
    "message": "Multiple QR codes detected",
    "reason": "BAD_REQUEST",
    "code": "E001"
  },

  // Passing image of size more than 10 MB
  {
    "result": {},
    "message": "File size exceeds limit",
    "reason": "BAD_REQUEST",
    "code": "E001"
  },

  // Passing image with no QR code
  {
    "result": {},
    "message": "No QR code detected",
    "reason": "BAD_REQUEST",
    "code": "E001"
  },

  // Passing image format other than png, jpeg or jpg
  {
    "result": {},
    "message": "Unsupported file format",
    "reason": "BAD_REQUEST",
    "code": "E001"
  },

  // Passing invalid image URL
  {
    "result": {},
    "message": "Invalid image URL",
    "reason": "BAD_REQUEST",
    "code": "E001"
  }
]

```

401

```json
// If Authorization token is not passed
{
    "message": "No API key found in request"
}

// If Authorization token is invalid
{
    "message": "Invalid authentication credentials"
}
```

422

```json
// QR code is not readable from the image
{
    "result": {},
    "message": "Failed to read the QR code, try with clear image",
    "reason": "UNPROCESSABLE_CONTENT",
    "code": "E450"
}
```

409

```json
{
    "result": {},
    "message": "Upstream error",
    "reason" : "CONFLICT",
    "code": "E401"
      
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!

### Error Parameter

| **PARAMETER NAME** | **DESCRIPTION**                    |
| ------------------ | ---------------------------------- |
| error              | This parameter contains the error. |
| error.statusCode   | Request Status code from Signzy    |
| error.name         | the name of the error              |
| error.message      | the error message                  |
| error.status       | status of the api                  |
| error.reason       | Reason for error                   |
| error.type         | Type of the error                  |

### Error Codes

| **CODE** | **DESCRIPTION**       | **INTERPRETATION**                                |
| -------- | --------------------- | ------------------------------------------------- |
| 400      | Bad Request           | Input Parameter has a missing required parameter  |
| 401      | Authorization Failed  | Authorization token is invalid.                   |
| 409      | Upstream Error        | Upstream is down, please contact support          |
| 500      | Internal Server Error | Internal error at Signzy, please contact support. |



:::hint{type="success"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

