---
updatedAt: 2026-11-12T11:20:13.000Z
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# Passive Liveness

> 👍 Additional Validations Added
>
> Both the passive image and passive video liveness have validations in place to reduce the number of false negatives and false positives.
>
> For example, always make sure that the image or video has a minimum resolution of 800 x 800 and a maximum resolution of 2000 x 2000 so that the model is able to accurately detech the liveness of the face. Images and videos not in this range will be rejected.
>
> Similarly, if the image or video is not taken from a mobile camera, and camera data is missing from the meta-data of the file, it is highly likely that the file will be rejected to prevent an image downloaded from the internet passing the liveness test.

> 👍 EXIF Metadata Checks
>
> This API only allows images which have the existence of the following EXIF Metadata tags:
>
> * `FileSource`
> * `Make`
> * `DateTime`
>
> During development, you can skip these metadata checks by using the optional boolean key `skip_metadata_validation` in the request body.

## Best Practices and Sample UI:

1. Minimum resolution: 800px x 800px and Maximum resolution: 2000px x 2000px
2. The face should be close to the camera: Between the two eyes, there should be atleast 400px.
3. Glasses/spectacles increase the false negativity rate
4. Hats/caps/masks increase the false negativity rate.
5. The face should be well lit.

### **Sample UI Copy that can be used in cadence with the following APIs to ensure your end-users follow best practices:**

Alternatively, you can add the above checks before the image is fed to the Passive Liveness API, and avoid showing these advisories to the end user.

*Note: Some liveness test flows do not allow the upload of images from the device's local storage.*

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/68821c261aa78c801bc3fcf502c8161c07072f6ba92cff7be010dc2896a9b9cb-Screenshot_2025-05-12_at_1.20.35_PM.png",
        "",
        ""
      ],
      "align": "center",
      "sizing": "50% ",
      "border": true
    }
  ]
}
[/block]

<br />

# Passive Video Liveness

Liveness Verification is the ability to detect the presence of a live user, rather than a representation such as a photo, a fake video, or a mask.

1. Various extensions supported for Liveness Verification API are -

* .mp4
* .webm

2. The maximum file size limit (both on upload and URL) is 20 MB.
3. The maximum duration of the video (both on upload and URL) is 10 sec.

```json Sample Request
curl --location --request POST 'https://in.staging.decentro.tech/v2/kyc/forensics/video_liveness' \
--header 'client_id: <your_client_id>' \
--header 'client_secret: <your_client_secret>' \
--header 'module_secret: <your_module_secret>' \
--form 'reference_id="02a05f79-4d10-47d6-89a9-6e5b54160e3e"' \
--form 'consent="true"' \
--form 'consent_purpose="for bank account purpose only"' \
--form 'video=@"/path/to/file"' \
--form 'video_url=""'
```
```json Sample Response
{
    "decentroTxnId": "DECXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "status": "SUCCESS",
    "responseCode": "S00000",
    "message": "Liveliness check performed successfully",
    "data": {
        "status": "SUCCESS",
        "confidence": "1.0"
    },
    "responseKey": "success_liveness_check"
}
```

***

# Passive Image Liveness

We know it's hard to do a Liveness check with a video of the customer. It results in the following -

* High response time
* Limited file type support
* And hard to convince customers to record a video for a liveness check

To solve the above issues, we have brought Passive Liveness for our customers -

* Liveness check with just an image/selfie
* Super fast response time
* Multiple file support - JPG, JPEG, and PNG
* Simple request body parameters
* An easy and clear response message with a liveness score
* Easy for the customer to click or upload an image

### Use Cases

* Identity Fraud Prevention
* Digital Onboarding
* Full KYC using Passive Liveness

### Sample Request & Response

> 👍 Available in both `multipart/form` and `application/json` request contracts

```json Sample Request
curl --location 'https://in.staging.decentro.tech/v2/kyc/forensics/liveness/passive' \
--header 'client_id: <your_client_id>' \
--header 'client_secret: <your_client_secret>' \
--header 'module_secret: <your_module_secret>' \
--form 'reference_id="ManishGupta"' \
--form 'consent="true"' \
--form 'purpose="for bank verification only"' \
--form 'image=@"/path/to/file"'
```
```Text Sample Request with application/json request contract
curl --location 'https://in.staging.decentro.tech/v3/kyc/farsight/liveness/passive' \
--header 'client_id: XXXXX' \
--header 'client_secret: XXXXXX' \
--header 'module_secret: XXXXXXXX' \
--header 'Content-Type: application/json' \
--data '{
    "reference_id": "XXXXXXXX", 
    "consent": true, 
    "purpose": "XXXXXXX", 
    "image": "<BASE64>" 
}'
```
```json Sample Response
{
  "decentroTxnId": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "status": "SUCCESS",
  "responseCode": "S00000",
  "message": "Passive liveness check performed successfully",
  "data": {
    "status": "SUCCESS",
    "live": "yes",
    "livenessScore": "85",
    "needToReview": "no"
  },
  "responseKey": "success_liveness_check"
}
```

***

## Response Codes and Messages

| Response Key                 | Message / Description                                      | Status  |
| :--------------------------- | :--------------------------------------------------------- | :------ |
| `success_liveness_check`     | The image liveliness check successful.                     | SUCCESS |
| `error_invalid_image_source` | This image might have been downloaded from another source. | FAILURE |
| `error_empty_image`          | This image field is empty, so pass an image.               | FAILURE |
| `error_consent_false`        | The user consent required for this check.                  | FAILURE |