---
title: Aadhaar App Create URL API (QR flow)
slug: api-marketplace/aadhaar-app-create-url-api-qr-flow
description: Learn how to use the Signzy API to easily create a secure URL where users can grant consent for Signzy to access and download files from Digilocker on their behalf. Our comprehensive document provides step-by-step instructions, a sample CURL request, inpu
createdAt: 2022-09-19T04:54:28.000Z
---

## Introduction

Signzy's new Aadhaar App API lets you verify customers using face recognition instead of OTPs. It's 80% cheaper, eliminates fraud, works offline, and increases conversion by 40%. We're the first company UIDAI-certified to offer this, and you can integrate it in just one day.

This API will help you generate QR which you can present to your customer. Whenever customer scans the QR using Aadhaar App and gives consent, you'll receive the Aadhaar details in callback.

***

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
POST https://api.signzy.app/api/v3/aadhaar/getQR
```
:::

:::CodeblockTabs
UAT/Testing Environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/aadhaar/getQR
```
:::

***

### Request headers

| Name           | 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. |
| x-access-token | XXXXXXXXXXXXXXX  | Mandatory | An access token to authorize the request. It can be generated through **Aadhaar App Auth generation API**  |

***

### Request body parameter

| **Parameter**          | **Type** | **Description**                                                                        | **Mandatory** |
| ---------------------- | -------- | -------------------------------------------------------------------------------------- | ------------- |
| callbackURL            | String   | The destination URL where the final result or status updates will be sent via Webhook. | **Yes**       |
| qrCodeTtl              | String   | **Time To Live** for the session (in ms). Defines how long the QR remains valid.       | No            |
| imageTtl               | String   | **Time To Live** for face image in response (in ms) if Persist URL is used.            | No            |
| isBase64Image          | Boolean  | If you want Face image in response in Base64 and not Persist URL, pass it as **true**. | No            |
| language               | String   | The UI language for the user journey (e.g., "hi" for Hindi, "en" for English).         | No            |
| faceAuthentication     | Boolean  | Flag to enable/disable facial matching during the flow.                                | No            |
| faceAuthenticationMode | String   | Method of auth (e.g., "offline" for XML/QR data verification).                         | No            |
| nameOfThePerson        | String   | The name of the individual undergoing verification.                                    | No            |
| scope                  | String   | Unique identifier or bitmask defining specific service permissions.                    | **Yes**       |

```json
{
    "callbackURL": "https://webhook.site/fe4b091f-5710-4d54-bf71-01e9b56b2d33", 
    "qrCodeTtl": "1000000", 
    "imageTtl": "10000000", 
    "isBase64Image": true, 
    "language": "en", 
    "faceAuthenticationMode": "online",
    "faceAuthentication": true,
    "nameOfThePerson": "Nikhil Maske", 
    "scope": "1111111111111111111111111111111111111111" 
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/aadhaar/getQR' \
--header 'Content-Type: application/json' \
--header 'Authorization:' \
--header 'x-access-token:' \
--data '{
    "callbackURL": "https://webhook.site/fe4b091f-5710-4d54-bf71-01e9b56b2d33", 
    "qrCodeTtl": "1000000", 
    "imageTtl": "10000000", 
    "isBase64Image": true, 
    "language": "en", 
    "faceAuthenticationMode": "online",
    "faceAuthentication": true,
    "nameOfThePerson": "Nikhil Maske", 
    "scope": "1111111111111111111111111111111111111111" 
}'
```

```nodejs
const axios = require('axios');

async function createAadhaarIntent() {
  const payload = {
    callbackURL: "https://webhook.site/fe4b091f-5710-4d54-bf71-01e9b56b2d33",
    qrCodeTtl: "1000000",
    imageTtl: "10000000",
    isBase64Image: true,
    language: "en",
    faceAuthenticationMode: "online",
    faceAuthentication: true,
    nameOfThePerson: "Nikhil Maske",
    scope: "1111111111111111111111111111111111111111"
  };

  try {
    const response = await axios.post('https://api-staging.signzy.app/api/v3/aadhaar/get-intent',
      payload,
      {
        headers: {
          'Content-Type': 'application/json',
          'Authorization': 'rKL5vNRpobQm9F4AJw5EfckCq57afDX1'
        }
      }
    );
    console.log(JSON.stringify(response.data, null, 2));
    return response.data;
  } catch (error) {
    console.error('Error:', error.response?.data || error.message);
  }
}

createAadhaarIntent();

```

```python
import requests
import json

def create_aadhaar_intent():
    url = "https://api-staging.signzy.app/api/v3/aadhaar/get-intent"
    headers = {
        "Content-Type": "application/json",
        "Authorization": "rKL5vNRpobQm9F4AJw5EfckCq57afDX1"
    }
    payload = {
        "callbackURL": "https://webhook.site/fe4b091f-5710-4d54-bf71-01e9b56b2d33",
        "qrCodeTtl": "1000000",
        "imageTtl": "10000000",
        "isBase64Image": True,
        "language": "en",
        "faceAuthenticationMode": "online",
        "faceAuthentication": True,
        "nameOfThePerson": "Nikhil Maske",
        "scope": "1111111111111111111111111111111111111111"
    }

    try:
        response = requests.post(url, headers=headers, json=payload)
        response.raise_for_status()
        data = response.json()
        print(json.dumps(data, indent=2))
        return data
    except requests.exceptions.RequestException as e:
        print(f"Error: {e}")

if __name__ == "__main__":
    create_aadhaar_intent()

```

```go
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
)

type Payload struct {
	CallbackURL           string `json:"callbackURL"`
	QRCodeTtl             string `json:"qrCodeTtl"`
	ImageTtl              string `json:"imageTtl"`
	IsBase64Image         bool   `json:"isBase64Image"`
	Language              string `json:"language"`
	FaceAuthenticationMode string `json:"faceAuthenticationMode"`
	FaceAuthentication    bool   `json:"faceAuthentication"`
	NameOfThePerson       string `json:"nameOfThePerson"`
	Scope                 string `json:"scope"`
}

func createAadhaarIntent() {
	url := "https://api-staging.signzy.app/api/v3/aadhaar/get-intent"
	payload := Payload{
		CallbackURL:           "https://webhook.site/fe4b091f-5710-4d54-bf71-01e9b56b2d33",
		QRCodeTtl:             "1000000",
		ImageTtl:              "10000000",
		IsBase64Image:         true,
		Language:              "en",
		FaceAuthenticationMode: "online",
		FaceAuthentication:    true,
		NameOfThePerson:       "Nikhil Maske",
		Scope:                 "1111111111111111111111111111111111111111",
	}

	jsonData, err := json.Marshal(payload)
	if err != nil {
		fmt.Printf("Error marshaling: %v\n", err)
		return
	}

	req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
	if err != nil {
		fmt.Printf("Error creating request: %v\n", err)
		return
	}
	req.Header.Set("Content-Type", "application/json")
	req.Header.Set("Authorization", "rKL5vNRpobQm9F4AJw5EfckCq57afDX1")

	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		fmt.Printf("Error: %v\n", err)
		return
	}
	defer resp.Body.Close()

	body, err := io.ReadAll(resp.Body)
	if err != nil {
		fmt.Printf("Error reading body: %v\n", err)
		return
	}

	fmt.Println(string(body))
}

func main() {
	createAadhaarIntent()
}

```
:::

***

### Response body parameters

| Parameter         | Data Type | Description                                                       |
| ----------------- | --------- | ----------------------------------------------------------------- |
| result            | Object    | Contains the result of the task being performed.                  |
| result.requestId  | String    | Unique ID allocated after the authorization in digilocker iframe. |
| result.intentLink | String    | The URL to complete the authentication.                           |

:::CodeblockTabs
200

```json
{
    "result": {
        "requestId": "dad09fa0-d8d1-45a8-8b04-9b11eb4a7894",
        "qrLink": "pehchaan://in.gov.uidai.pehchaan?request=eyJhbGciOiJSUzI1NiIsInR5cCI6ImNyZWRlbnRpYWwtcmVxK2p3dCJ9.eyJ0eG4iOiJkYWQwOWZhMC1kOGQxLTQ1YTgtOGIwNC05YjExZWI0YTc4OTQiLCJpIjoiY3JlZGVudGlhbCIsImxhbmciOiJoaSIsInNjIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsIm0iOiIwIiwicG9wIjoiMSIsImFjIjoic2lnbnp5dGVjaCIsInNhIjoiMDBiMSIsImNiIjoiaHR0cHM6Ly9hcGktc3RhZ2luZy5zaWduenkuYXBwL2FwaS92My9hYWRoYWFyLXVpZGFpL2NhbGxiYWNrVXJsIiwiYXVkIjoic2lnbnp5LmNvbSIsImlzcyI6Imh0dHBzOi8vcGVoY2hhYW4udWlkYWkuZ292LmluL3YxLyIsImV4cCI6MTc3MTMyODEwNywiaWF0IjoxNzcxMjQxNzA3LCJodCI6IlNpZGRoYW50IFNlaGdhbCIsImp0aSI6IjMzNDFmMDI2LWEzZjgtNDA2NC1iNjVhLWVlMmM3MjA2NTc3ZCIsImNoIjoid2ViIiwiYWlkIjoiIiwiYXNpZyI6IiJ9.MDjsTw0g_h93WYnxXRsbe2t61u3jWx_19AGNqxMRZf8FS9OvnmLNO9gDWRh7FU7GL-DYXw5nbgjJ53Jk_U-hKRJL4h9tpLsd7ShGmj83eiLY87R-qQKMuGegvgMozAbHecB9sCJQWCe5PpW-M7APMeTFbKRK4caGNPlhOiNSNj8C7daoamlbLJnaUmMqV3W5hLqH6rLNS5QX_Qww7nFU40jE-kvnGLSulClveJ_SjIYDRJiKOTgGM2FEEe11dEBGi3JPTmIY8TP_Wdt0F935IDTwY32kiO0dpkLMVzCLED0rLUq4bXnEUQprgyw-wg90dHEz1ppyDtigG07yBC1_3w&source=web"
    }
}
```

400

```json
// Validation error: If the parameter's data type is incorrect or value is invalid
{
    "error": {
        "reason": "VALIDATION_ERROR",
        "status": 400,
        "message": "<Message>", // example: "\"supportEmailVisible\" must be one of [true, false]"
        "type": "Bad Request",
        "statusCode": 400,
        "name": "error"
    }
}

```

401

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

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

500

```json
{
    "error": {
        "reason": "Internal Server Error.",
        "message": "Internal Server Error.",
        "status": 500,
        "type": "Error",
        "statusCode": 500
    }
}
```
:::

***

**Note:** Once the consent is given successfully, the below response will be received in the callback URL provided in the request packet.

\{&#x20;

"requestId" : "83895c0a-2701-4ff1-8e57-8d9e0264d4",&#x20;

"credentialIssuingDate" : "2026-02-13T12:13:22",&#x20;

"enrolmentDate" : "2020-09-04T14:35:32",&#x20;

"enrolmentNumber" : "08154213173740",&#x20;

"isNri" : "No",&#x20;

"residentImage" : "https\://persist.signzy.tech/api/files/1624989922/download/bdf3f468c7d14f6aaf8e23a735311acbba28681b187c.png",&#x20;

"residentName" : "Cooper",&#x20;

"localResidentName" : "कुमार",&#x20;

"ageAbove18" : "Yes",&#x20;

"ageAbove50" : "No",&#x20;

"ageAbove60" : "No",&#x20;

"ageAbove75" : "No",&#x20;

"dob" : "27/07/1997",&#x20;

"gender" : "MALE",&#x20;

"careOf" : "S/O: Rajesh Sharma",&#x20;

"localCareOf" : "S/O: राजेश शर्मा",&#x20;

"building" : "Sunrise Apartments",&#x20;

"localBuilding" : "सनराइज अपार्टमेंट्स",&#x20;

"locality" : "Green Park Colony",&#x20;

"localLocality" : "ग्रीन पार्क कॉलोनी",&#x20;

"street" : "Main Market Road",&#x20;

"localStreet" : "सिमराढाब बिरनी",&#x20;

"landmark" : "Near City Hospital",&#x20;

"localLandmark" : "सिटी अस्पताल के पास",&#x20;

"vtc" : "Palaunjia",&#x20;

"localVtc" : "पलौंजिया",&#x20;

"subDistrict" : "Birni",&#x20;

"localSubDistrict" : "बिरनी",&#x20;

"district" : "Giridih",&#x20;

"localDistrict" : "गिरीडीह" ,&#x20;

"state" : "Jharkhand",&#x20;

"localState" : "झारखण्ड",&#x20;

"poName" : "Indore GPO",&#x20;

"localPoName" : "इंदौर जी.पी.ओ.",&#x20;

"pincode" : "825334",&#x20;

"address" : "S/O: Kumar VILL POST PS Giridih Jharkhand 825334",&#x20;

"regionalAddress" : "S/O: कुमार ग्राम पोस्ट थाना गिरीडीह झारखण्ड 825334",&#x20;

"mobile" : "9999999999",&#x20;

"maskedMobile" : "XXXXX-X9999",&#x20;

"email" : "",&#x20;

"maskedEmail" : "" }



**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!

