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

# Passive Image Liveness

### API Endpoints

| Environment       | Endpoint                                                            |
| :---------------- | :------------------------------------------------------------------ |
| Staging / Sandbox | <https://in.staging.decentro.tech/v3/kyc/farsight/liveness/passive> |
| Production        | <https://in.decentro.tech/v3/kyc/farsight/liveness/passive>         |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decentro-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://in.staging.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v3/kyc/farsight/liveness/passive": {
      "post": {
        "summary": "Passive Image Liveness",
        "description": "",
        "operationId": "kyc-and-onboarding-api-reference-farsight-face-forensics-passive-liveness-v3",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "description": "ID/identifier that is provided by Decentro to a specific client and environment. Please note, this may change based on the environment you are on.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "The confidential credential provided by Decentro that is associated with the client_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "consent",
                  "purpose",
                  "image"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "Any unique ID assigned by you for this API request."
                  },
                  "consent": {
                    "type": "boolean",
                    "description": "true/false based on the consent given by the customer. Mandatory as per regulation.",
                    "default": false
                  },
                  "purpose": {
                    "type": "string",
                    "description": "The purpose of taking this consent from your customer. Mandatory as per regulation"
                  },
                  "image": {
                    "type": "string",
                    "description": "Base64 String of the Image"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Passive liveness check performed successfully\",\n    \"data\": {\n        \"status\": \"SUCCESS\",\n        \"live\": \"yes\",\n        \"livenessScore\": \"85\",\n        \"needToReview\": \"no\"\n    },\n    \"responseKey\": \"success_liveness_check\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    },
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "S00000"
                    },
                    "message": {
                      "type": "string",
                      "example": "Passive liveness check performed successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "live": {
                          "type": "string",
                          "example": "yes"
                        },
                        "livenessScore": {
                          "type": "string",
                          "example": "85"
                        },
                        "needToReview": {
                          "type": "string",
                          "example": "no"
                        }
                      }
                    },
                    "responseKey": {
                      "type": "string",
                      "example": "success_liveness_check"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failure: Empty Reference ID": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Request reference ID cannot be null or empty. Hint: reference_id (string)\"\n}"
                  },
                  "Failure: False Consent": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Cannot proceed further without user consent.\",\n    \"responseKey\": \"error_consent_false\"\n}"
                  },
                  "Failure: Empty Consent": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"`consent` can either be \\\"true\\\" or \\\"false\\\"\",\n    \"responseKey\": \"error_invalid_consent\"\n}"
                  },
                  "Failure: Empty Purpose": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Purpose cannot be null or empty. Hint: purpose (string)\",\n    \"responseKey\": \"error_empty_purpose\"\n}"
                  },
                  "Failiure: Duplicate Reference ID": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00019\",\n    \"message\": \"Duplicate Request Reference ID\",\n    \"responseKey\": \"error_duplicate_reference_id\"\n}"
                  },
                  "Failure: Short Purpose Length": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Purpose should be at least 20 characters in length.\",\n    \"responseKey\": \"error_short_purpose_length\"\n}"
                  },
                  "Failure: Long Purpose Length": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Purpose can be at most 50 characters in length.\",\n    \"responseKey\": \"error_long_purpose_length\"\n}"
                  },
                  "Failure: Empty Image": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Pass an Image, `image` cannot be null.\",\n    \"responseKey\": \"error_empty_image\"\n}"
                  },
                  "Failure: Invalid File Type": {
                    "value": "{\n    \"decentroTxnId\": \"DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00020\",\n    \"message\": \"File type not allowed. Allowed extensions are jpg, jpeg, png\",\n    \"responseKey\": \"error_invalid_file_format\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Failure: Empty Reference ID",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Request reference ID cannot be null or empty. Hint: reference_id (string)"
                        }
                      }
                    },
                    {
                      "title": "Failure: False Consent",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Cannot proceed further without user consent."
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_consent_false"
                        }
                      }
                    },
                    {
                      "title": "Failure: Empty Consent",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "`consent` can either be \"true\" or \"false\""
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_invalid_consent"
                        }
                      }
                    },
                    {
                      "title": "Failure: Empty Purpose",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Purpose cannot be null or empty. Hint: purpose (string)"
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_empty_purpose"
                        }
                      }
                    },
                    {
                      "title": "Failiure: Duplicate Reference ID",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00019"
                        },
                        "message": {
                          "type": "string",
                          "example": "Duplicate Request Reference ID"
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_duplicate_reference_id"
                        }
                      }
                    },
                    {
                      "title": "Failure: Short Purpose Length",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Purpose should be at least 20 characters in length."
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_short_purpose_length"
                        }
                      }
                    },
                    {
                      "title": "Failure: Long Purpose Length",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Purpose can be at most 50 characters in length."
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_long_purpose_length"
                        }
                      }
                    },
                    {
                      "title": "Failure: Empty Image",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00009"
                        },
                        "message": {
                          "type": "string",
                          "example": "Pass an Image, `image` cannot be null."
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_empty_image"
                        }
                      }
                    },
                    {
                      "title": "Failure: Invalid File Type",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        "status": {
                          "type": "string",
                          "example": "FAILURE"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "E00020"
                        },
                        "message": {
                          "type": "string",
                          "example": "File type not allowed. Allowed extensions are jpg, jpeg, png"
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "error_invalid_file_format"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```