---
title: Aadhaar verification
slug: api-marketplace/aadhaar-verification
description: Learn how the Aadhaar Verification API simplifies customer onboarding and identity verification processes. Validate Aadhaar numbers, access demographic information, and ensure data security and privacy. Integrate this API into your systems across various 
createdAt: 2023-04-19T11:39:21.000Z
---

### Introduction

Aadhaar Verification API is designed to simplify identity verification processes for seamless customer onboarding. This versatile tool empowers businesses to validate Aadhaar numbers and access comprehensive demographic information effortlessly.

With just a simple input of an Aadhaar number, our API swiftly returns a wealth of data. You gain instant access to the Aadhaar number's validity status, age band, gender, state, and a masked mobile number associated with the holder. This invaluable information enables you to verify customer identities accurately and efficiently, enhancing your overall customer experience and bolstering fraud prevention measures.

The Aadhaar Verification API caters to businesses of all sizes, from startups to large enterprises. By integrating this API into your systems, you can streamline your customer onboarding, KYC (Know Your Customer), and identity verification processes. Whether you operate in the financial sector, e-commerce, or any industry that requires reliable identity verification, our API is designed to meet your needs.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/aadhaar/verify
```
:::

:::CodeblockTabs
UAT Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/aadhaar/verify
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                | **Required** |
| ------------- | ------------- | ------------------------------ | ------------ |
| uid           | String        | Aadhaar number to be verified. | Mandatory    |

```json
{
  "uid": "<aadhaar-number>"
}
```

***

### 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/aadhaar/verify' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Token>' \
--data '{
    "uid": "<Aadhaar Number>"
}'
```

Node.js

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "uid": "<Aadhaar Number>"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/aadhaar/verify',
  headers: { 
    'Content-Type': 'application/json', 
    '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({
  "uid": "<Aadhaar Number>"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Token>'
}
conn.request("POST", "/api/v3/aadhaar/verify", 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/aadhaar/verify"
  method := "POST"

  payload := strings.NewReader(`{
    "uid": "<Aadhaar Number>"
}`)

  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", "<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 input Aadhaar number.                                                                               |
| result.verified     | String        | Possible values are true or false.                                                                                                |
| result.ageBand      | String        | Represents the age range of the individual.                                                                                       |
| result.state        | String        | The individual's state of residence.                                                                                              |
| result.mobileNumber | String        | The mobile number of the individual. Only the last 3 three digits are displayed, the rest are returned as masked. e.g: XXXXXXX484 |
| result.gender       | String        | The gender of the individual.                                                                                                     |

:::CodeblockTabs
200

```json
{ 
  "result": {
      "verified": "..true/false..",
      "ageBand": "..ageBand..",
      "state": "..state..",
      "mobileNumber": "..mobileNumber..",
      "gender": "..gender.."
  }
}
```

400

```json
// Invalid UID
{
    "error": {
        "name": "error",
        "message": "Aadhaar Number is invalid",
        "status": "Bad Request",
        "statusCode": 400
    }
}

// Passing empty string in uid field
{
    "error": {
        "name": "error",
        "message": "Aadhaar Number is not allowed to be an empty string",
        "status": "Bad Request",
        "statusCode": 400
    }
}

// Passing non-string value in uid field
{
    "error": {
        "name": "error",
        "message": "Aadhaar Number must be a string",
        "status": "Bad Request",
        "statusCode": 400
    }
}
```

401

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

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

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```
:::

***

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