---
title: OVD extraction and face match
slug: api-marketplace/ovd-extraction-and-face-match
createdAt: 2024-08-15T18:01:28.752Z
---

## Introduction

The OVD Orchestration API Service is an AI-powered facial recognition, face match and document analysis technology to verify identities with precision. By providing an ID card image and a selfie image, our AI-driven system automatically extracts and matches the face from the ID card with the selfie to ensure authenticity. Simultaneously, it uses AI to identify the type of ID card and extract all relevant details, delivering a seamless and secure verification experience.

***

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
POST https://api.signzy.app/api/v3/ovd/extraction-face-verification
```
:::

:::CodeblockTabs
Production Environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/ovd/extraction-face-verification
```
:::

### Request headers&#x20;

| 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                | Required  |
| ----------- | --------- | -------------------------- | --------- |
| id\_url     | string    | The file of user's selfie. | Mandatory |
| selfie\_url | string    | The file of user's Id      | Mandatory |

```json
{
    "id_url": "xxx.jpeg",
    "selfie_url":"xxx.jpeg"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/ovd/extraction-face-verification' \
--header 'Content-Type: application/json' \
--header 'authorization;'' \
--data '{
    "id_url": "xxx.jpeg",
    "selfie_url":"xxx.jpeg"
}
'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "id_url": "https://persist.signzy.tech/api/files/365753005/download/13a57fdc1df54e01a8db4ebca9e9c716ff5e326889284de289bb47ea0e6c1459.jpeg",
  "selfie_url": "https://persist.signzy.tech/api/files/365753005/download/13a57fdc1df54e01a8db4ebca9e9c716ff5e326889284de289bb47ea0e6c1459.jpeg"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/ovd/extraction-face-verification',
  headers: { 
    'Content-Type': 'application/json', 
    'authorization': ''
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

```python
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/ovd/extraction-face-verification"
  method := "POST"

  payload := strings.NewReader(`{
    "id_url": "https://persist.signzy.tech/api/files/365753005/download/13a57fdc1df54e01a8db4ebca9e9c716ff5e326889284de289bb47ea0e6c1459.jpeg",
    "selfie_url":"https://persist.signzy.tech/api/files/365753005/download/13a57fdc1df54e01a8db4ebca9e9c716ff5e326889284de289bb47ea0e6c1459.jpeg"
}
`)

  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", "")

  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))
}
```

```go
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/translators/textToAudio"
  method := "POST"

  payload := strings.NewReader(`{
    "language":"hi",
    "gender": "female",
    "input": [
        {
            "source": "મારું નામ રામ છે"
        },
        {
            "source": "તારું નામ શું છે"
        }
    ]
}`)

  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", "<Auth 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              | Array of Objects | A list containing the translation results. |
| result.audioContent | String           | The original text that was translated.     |

:::CodeblockTabs
200

```json
{
    "idType": "individualPan",
    "FaceExtractedURL": "...",
    "Details": {
        "aadhaar": {},
        "individualPan": {
            "dob": "...",
            "name": "...",
            "fatherName": "...",
            "number": "...",
            "panType": "...",
            "summary": {
                "number": "...",
                "name": "...",
                "dob": "...",
                "address": "...",
                "splitAddress": {
                    "district": [],
                    "state": [
                        []
                    ],
                    "city": [],
                    "pincode": "...",
                    "country": [],
                    "addressLine": "..."
                },
                "gender": "...",
                "guardianName": "...",
                "issueDate": "...",
                "expiryDate": "..."
            }
        },
        "passport": {},
        "voterId": {},
        "dl": {}
    },
    "faceMatchDetails": {
        "verified": true,
        "message": "Verification completed with positive result",
        "matchPercentage": "100.00%"
    }
}
```

400

```json
// When the given file is in wrong format
{
    "error": {
        "name": "error",
        "message": "Only images & PDFs are allowed, one of the urls does not respond like an image or pdf",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}

```

401

```json
// When API key is not passed in headers
{
    "message": "No API key found in request"
}

// When wrong API key is passed in headers
{
    "message": "Invalid authentication credentials"
}
```

409

```json
{
    "error": {
        "name": "error",
        "message": "Error in getting Data from Upstream",
        "status": 409,
        "reason": "ERROR",
        "type": "Conflict",
        "statusCode": 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!
