---
title: Static ID extraction
slug: api-marketplace/static-id-extraction
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

&#x20;Static ID Extraction helps in extraction of information present on ID card (password protected zip or xml) and can be verified from user inputs or other sources.

***

### API Endpoint's

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/identity/offlineExtraction
```
:::

:::CodeblockTabs
UAT Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/identity/offlineExtraction
```
:::

***

### Request body parameters

| Parameter | Data Type | Description                                    | Mandatory               |
| --------- | --------- | ---------------------------------------------- | ----------------------- |
| url       | String    | The URL value of the ID card ZIP or XML file.  | Mandatory               |
| password  | String    | The password needs to be passed for ZIP files. | Conditionally Mandatory |

```json
{
    "url": "xxxxxx",
    "password": "yyyyy"
}
```

***

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

***

### Code Samples

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/identity/offlineExtraction' \
--header 'Content-Type: application/json' \
--header 'Authorization: <your access token>' \
--data '{
   "url":"xxxxxx",
   "password":"yyyyyyy"
}'
```

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/identity/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/identity/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/identity/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    | The main container for the response information.                   |
| result.name                     | String    | The name of the individual.                                        |
| result.dob                      | String    | Date of birth in the format "xx/xx/xxxx".                          |
| result.yob                      | String    | Year of birth (four digits).                                       |
| result.gender                   | String    | Gender information.                                                |
| result.emailHash                | String    | Hashed email information.                                          |
| result.mobileNoHash             | String    | Hashed mobile number information.                                  |
| result.address                  | String    | Complete address information.                                      |
| result.photo                    | String    | URL to the individual's photo.                                     |
| result.idLast4Digits            | String    | The last four digits of the ID.                                    |
| result.poi                      | String    | The ID with the "XXXXXXXX" prefix.                                 |
| result.generationDate           | String    | Date of information generation in the format "xx/xx/xxxx".         |
| result.generationTime           | String    | Time of information generation in the format "xx\:xx\:xx".         |
| result.unixTimeStamp            | Number    | Unix timestamp representing the generation time.                   |
| result.dateDifference           | Number    | Difference in dates (assuming related to generation date).         |
| result.expiryTime               | String    | Expiry time information.                                           |
| result.emailHashVerified        | String    | Email hash verification status.                                    |
| result.mobileHashVerified       | String    | Mobile hash verification status.                                   |
| result.splitAddress             | Object    | Subdivided address details.                                        |
| result.splitAddress.district    | Array     | Array containing district information.                             |
| result.splitAddress.state       | Array     | Array containing state information, with possible abbreviations.   |
| result.splitAddress.city        | Array     | Array containing city information.                                 |
| result.splitAddress.pincode     | String    | The postal code of the address.                                    |
| result.splitAddress.country     | Array     | Array containing country information, with possible abbreviations. |
| result.splitAddress.addressLine | String    | The street address line.                                           |
| result.x509Data                 | Object    | X.509 certificate details.                                         |
| result.x509Data.subjectName     | String    | X.509 subject name information.                                    |
| result.x509Data.certificate     | String    | X.509 certificate information.                                     |
| result.x509Data.details         | Object    | Additional details related to X.509 certificate.                   |
| result.x509Data.validIDDSC      | String    | Valid ID Digital Signature Certificate (DSC) status.               |

:::CodeblockTabs
200

```json
{
  "result": {
    "name": "xxxx",
    "dob": "xx/xx/xxxx",
    "yob": "xxxx",
    "gender": "xxxx",
    "emailHash": "xxxx",
    "mobileNoHash": "xxxx",
    "address": "S/O: xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx",
    "photo": "https://xxxx.xxxx.xxxx/xxxx/xxxx/download/xxxx.jpeg",
    "idLast4Digits": "xxxx",
    "poi": "XXXXXXXXxxxx",
    "generationDate": "xx/xx/xxxx",
    "generationTime": "xx:xx:xx",
    "unixTimeStamp": xxxx,
    "dateDifference": xxxx,
    "expiryTime": "xxxx",
    "emailHashVerified": "xxxx",
    "mobileHashVerified": "xxxx",
    "splitAddress": {
      "district": ["xxxx"],
      "state": [["xxxx", "xxxx"]],
      "city": ["xxxx"],
      "pincode": "xxxx",
      "country": ["xxxx", "xxxx", "xxxx"],
      "addressLine": "S/O:xxxx xxxx xxxx xxxx"
    },
    "x509Data": {
      "subjectName": "xxxx",
      "certificate": "xxxx",
      "details": {},
      "validIDDSC": "xxxx"
    }
  }
}

```

400

```json
// Missing url
{
    "error": {
        "name": "error",
        "message": "\"requestBody.url\" is not allowed to be empty",
        "status": "Bad Request",
        "statusCode": 400
    }
}

// Missing password in request body
{
    "error": {
        "name": "error",
        "message": "\"requestBody.password\" is not allowed to be empty",
        "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": {
        "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!


