---
title: Digilocker 2.0 Verify Account
slug: api-marketplace/digilocker-20-verify-account
createdAt: 2026-07-29T09:52:44.350Z
---

## Introduction

Our Verify Account API efficiently assesses the presence of a Digilocker account linked to a provided Aadhar number. If such an account is found, the API responds with a "**true**" status and also presents the associated digilockerid, offering a seamless way to validate and retrieve user-specific Digilocker details.

***

## API details

### Endpoint

:::CodeblockTabs
Production 2.0 Environment

```none
POST https://api.signzy.app/api/v3/digilocker-v2/verifyAccount
```
:::

:::CodeblockTabs
UAT/Testing 2.0 Environment

```none
POST https://api-preproduction.signzy.app/api/v3/digilocker-v2/verifyAccount
```
:::

***

### 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. |

***

### Request body parameter

| Parameter     | Data Type | Description                               | Required                |
| ------------- | --------- | ----------------------------------------- | ----------------------- |
| aadhaarNumber | String    | Aadhaar number which is being verified.   | Conditionally Mandatory |
| mobileNumber  | String    | The mobile number which is being verified | Conditionally Mandatory |

:::hint{type="info"}
One of `aadhaarNumber` or `mobileNumber` needs to be passed while making the API call.
:::

```json
{
    "aadhaarNumber" : "000000000000"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/digilocker-v2/verifyAccount' \
--header 'Authorization: <Your Access Token>' \
--header 'Content-Type: application/json' \
--data '{
    "aadhaarNumber" : "000000000000"
}'
```

```nodejs
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api-preproduction.signzy.app/api/v3/digilocker-v2/verifyAccount',
  'headers': {
    'Authorization': '<Your Access Token>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "aadhaarNumber": "000000000000"
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/digilocker-v2/verifyAccount"

payload = json.dumps({
  "aadhaarNumber": "000000000000"
})
headers = {
  'Authorization': '<Your Access Token>',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```go
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/digilocker-v2/verifyAccount"
  method := "POST"

  payload := strings.NewReader(`{
    "aadhaarNumber" : "000000000000"
}`)

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

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

  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 result of the task being performed.                                                                                                               |
| result.registered   | Boolean   | Indicates whether the provided Aadhaar number is registered with digilocker. “**true**” if the Aadhaar number is registered with digilocker. Else “**false**”. |
| result.digilockerid | String    | The Digilocker ID associated with the provided Aadhaar number. This is provided only if the aadhaar is registered with Digilocker.                             |

:::CodeblockTabs
200

```json
{
    "result": {
        "registered": true,
        "digilockerid": "f3102754-3555-5c30-a95c-0000b00000f0"
    }
}
```

400

```json
// Invalid mobile number
{
    "error": {
        "reason": "VALIDATION_ERROR",
        "status": 400,
        "message": "Invalid mobile number",
        "type": "Bad Request",
        "statusCode": 400,
        "name": "error"
    }
}

// Invalid Aadhaar number
{
    "error": {
        "reason": "VALIDATION_ERROR",
        "status": 400,
        "message": "Invalid aadhaar number",
        "type": "Bad Request",
        "statusCode": 400,
        "name": "error"
    }
}
```

500

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

***

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

