---
title: UDIN Fetch details
slug: api-marketplace/udin-fetch-details
description: Learn how to create Aadhaar card identity objects and extract offline Aadhaar information using API endpoints. The first endpoint enables the creation of identity objects with parameters like type, email, callback URL, and images. Get the details of the c
createdAt: 2023-04-19T11:39:12.000Z
---

### Introduction

The UDIN (Unique Document Identification Number) Fetch details API is designed to retrieve detailed information about documents verified through the UDIN system. This API uses a secure OTP (One-Time Password) mechanism. The OTP, generated via the UDIN Get OTP API, acts as a verification step before fetching the details.

***

### API Endpoint's

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/udin/fetchData
```
:::

:::CodeblockTabs
UAT Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/udin/fetchData
```
:::

***

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

| Parameter | Data Type | Description | Mandatory |
| --------- | --------- | ----------- | --------- |
| token     | String    | Token ID    | Mandatory |
| mobileOTP | String    | Mobile OTP  | Mandatory |
| emailOTP  | String    | Email OTP   | Mandatory |

***

### Request body

```json
{
 "token": "666b253f0da612001dabf967",
 "mobileOTP": "14838",
 "emailOTP": "71370"
}
```

***

### Code Samples

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/udin/fetchData' \
--header 'Content-Type: application/json' \
--header 'Authorization; Authorization' \
--data '{
 "token": "666b253f0da612001dabf967",
 "mobileOTP": "14838",
 "emailOTP": "71370"
}'
```

Node

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "url": "xxxxxx",
  "password": "yyyyyyy"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/aadhaar/offlineExtraction',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<your access 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({
  "url": "xxxxxx",
  "password": "yyyyyyy"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<your access token>'
}
conn.request("POST", "/api/v3/aadhaar/offlineExtraction", 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/offlineExtraction"
  method := "POST"

  payload := strings.NewReader(`{
   "url":"xxxxxx",
   "password":"yyyyyyy"
}`)

  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", "<your access 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    | Result object               |
| verificationDate        | String    | Date of Verification        |
| udinGenerationDate      | String    | UDIN generation date        |
| dateOfSigningOfDocument | String    | Date of Signing of document |
| udinNumber              | String    | UDIN                        |
| memberDetails           | String    | UDIN issued by              |
| documentType            | String    | Document type               |
| typeOfCertificate       | String    | Type of Certificate         |
| figuresParticulars      | String    | Amount and Invoice number   |
| documentDescription     | String    | Docuemnt description        |
| status                  | String    | Status of UDIN              |

:::CodeblockTabs
200

```json
{
    "result": {
        "verificationDate": "13/06/2024",
        "udinGenerationDate": "16/04/2024",
        "dateOfSigningOfDocument": "16/04/2024",
        "udinNumber": "192037ZZSBGI4XXXX",
        "memberDetails": "SWAPNIL ASHOK WANI (138217)",
        "documentType": "Certificates",
        "typeOfCertificate": "Others",
        "figuresParticulars": "1.Amount In USD:30000 2.Invoice No:02/2024",
        "documentDescription": "Certificate for Invoice Confirmation",
        "status": "Active"
    }
}


```

400

```json
// Invalid Mobile OTP
{
"error": {
"statusCode": 400,
"name": "error",
"message": "Invalid mobile OTP",
"status": 400
}
}
// Invalid Mobile OTP
{
"error": {
"statusCode": 400,
"name": "error",
"message": "Invalid email OTP",
"status": 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"
}
//Token expired
{
"error": {
"statusCode": 400,
"name": "error",
"message": "The Token has already expired!!",
"status": 400
}
}

```

404

```none
//UDIN not found
{
"error": {
"statusCode": 404,
"name": "error",
"message": "UDIN Number not found",
"status": 404
}
}

```

409

```json
{
    "error": {
        "statusCode": 409,
        "name": "error",
        "message": "Upstream Down",
        "status": 409
    }
}
```
:::

***

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


