---
title: Image Passive Liveliness advanced v2
slug: api-marketplace/image-passive-liveliness-advanced-v2
createdAt: 2026-08-31T06:47:36.850Z
---

## Introduction

Passive Liveliness Advanced V2 evaluates a face image for liveness and image-quality signals in a single call. Given a publicly accessible image URL, the API detects whether a face is present and returns a validity verdict, with an optional detailed breakdown of the individual prediction checks (spoof detection, pose, occlusion, eyewear, background, and face size).

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```javascript
POST https://api.signzy.app/api/v3/passive-liveliness/advanced-v2
```
:::

:::CodeblockTabs
UAT/Testing Endpoint

```javascript
POST https://api-preproduction.signzy.app/api/v3/passive-liveliness/advanced-v2
```
:::

***

### 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** | **Required** |
| ------------- | ------------- | --------------- | ------------ |
| image\_url    | String        | Input image URL | Mandatory    |

:::CodeblockTabs
JSON

```json
{
    "image_url": "https://example.com/path/to/image.png"
}
```
:::

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/passive-liveliness/advanced-v2' \
--header 'Content-Type: application/json' \
--header 'Authorization: {api_key}' \
--data '{
    "image_url": "https://example.com/path/to/image.png"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "image_url": "https://persist.signzy.tech/api/files/2011000765/download/xxxx.png"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/passive-liveliness/advanced-v2',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '{{Auth}}'
  },
  data : data
};

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

```

```python
import http.client
import json

conn = http.client.HTTPSConnection("api-preproduction.signzy.app")
payload = json.dumps({
  "image_url": "https://persist.signzy.tech/api/files/2011000765/download/xxxx.png"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '{{Auth}}'
}
conn.request("POST", "/api/v3/passive-liveliness/advanced-v2", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

```go
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/passive-liveliness/advanced-v2"
  method := "POST"

  payload := strings.NewReader(`{
    "image_url": "https://persist.signzy.tech/api/files/2011000765/download/xxxx.png"
}`)

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

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := io.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| **Parameter**      | **Data Type** | **Description**                               |
| ------------------ | ------------- | --------------------------------------------- |
| faceImageValid     | boolean       | Derived overall verdict                       |
| noFaceDetected     | boolean       | No face was found in the image                |
| isNotFrontal       | boolean       | Face not facing the camera directly           |
| faceRotated        | boolean       | Face is rotated/tilted in-plane               |
| eyesClosed         | boolean       | One or both eyes closed                       |
| eyesOccluded       | boolean       | Eyes obstructed (e.g. by hair, glare, object) |
| glassesDetected    | boolean       | Subject wearing glasses                       |
| faceOccluded       | boolean       | Part of the face obstructed                   |
| backgroundNotSolid | boolean       | Background is not a plain/solid backdrop      |
| multiplePersons    | boolean       | More than one face detected                   |
| faceTooSmall       | boolean       | Face too small relative to frame              |
| faceTooLarge       | boolean       | Face too large relative to frame              |
| notLive            | boolean       | Spoof detected — not a genuine live capture   |

:::CodeblockTabs
200

```json
{
 "result": {
   "faceImageValid": false,
   "predictions": {
     "noFaceDetected": false,
     "isNotFrontal": false,
     "faceRotated": false,
     "eyesClosed": false,
     "eyesOccluded": false,
     "glassesDetected": false,
     "faceOccluded": false,
     "backgroundNotSolid": true,
     "multiplePersons": false,
     "faceTooSmall": false,
     "faceTooLarge": false,
     "notLive": false
   }
 }
}

```

400

```json
// When request body is empty
{
  "error": {
    "statusCode": 400,
    "status": "Bad Request",
    "message": "\"requestBody.image_url\" is not allowed to be empty",
    "id": "ff7638a1-b2c8-44ac-b583-7ff5b902fc16"
  }
}

// When the given file is not valid
{
    "error": {
        "statusCode": 400,
        "name": "error",
        "message": "One or more File(s) not valid",
        "status": 400
    }
}
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```

422

```json
{
  "error": {
    "message": "Unable to process the provided image",
    "status": 422,
    "reason": "UNPROCESSABLE_ENTITY",
    "type": "VALIDATION_ERROR",
    "statusCode": 422
  }
}
```
:::

***

### Document related constraints

:::hint{type="info"}
- The size of the document should not exceed&#x20;**&#x20;5 MB**.
- If the quality of the image is below the threshold the image will be rejected&#x20;
- If the image contains no face or mulitple faces it will be rejected
- The image should be clicked in a well-lit room, with the face shown clearly to the camera. Extreme darkness/brightness on the face might result in the API behaving unexpectedly.
- The complete face should be clearly visible in the image. Tilted faces might result in API behaving unexpectedly.
- The minimum size of the detected face should be 224X224 pixels.
- Motion Blur might result in API behaving unexpectedly.
- Any occlusions on parts of the face like Glasses and masks should be removed while performing a Liveness Check.
- The detected Face should occupy at least 20% of the total image area.
- The image should be clicked as a selfie (portrait mode only).
- No image compression is highly recommended for accurate results.
:::

***

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