> For the complete documentation index, see [llms.txt](https://api-old.innov8tif.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-old.innov8tif.com/okaylive++/anti-spoofing.md).

# Anti-spoofing

<mark style="color:green;">`POST`</mark> `https://okayliveplusdemo.innov8tif.com/pd/api/liveness_spoof/checking`

Request to be submitted in form-data

#### Request Body

| Name                                     | Type   | Description             |
| ---------------------------------------- | ------ | ----------------------- |
| data<mark style="color:red;">\*</mark>   | File   | Selfie Image            |
| apiKey<mark style="color:red;">\*</mark> | String | XXXXXXXXXXXXXXXXXXXXXXX |

{% tabs %}
{% tab title="200: OK JSON Responses (Live Selfie)" %}

```javascript
{
    "status": "success",
    "message": "api.success",
    "score": 0.6890439391136169,
    "class": "Live" 
}
```

{% endtab %}

{% tab title="200: OK JSON Responses (non-live selfie)" %}

```javascript
{
    "status": "success",
    "message": "api.success",
    "score": 0.2694315016269684,
    "class": "Spoof" 
}
```

{% endtab %}
{% endtabs %}

### Example Input Parameter (form-data)

![](/files/FWQUFqcY7LIIqogUV8Rl)

## Error Messages

### Face Not Found

```
{
    "status": "error",
    "message": "FACE_NOT_FOUND" 
}
```

### Empty result or error in parsing the python result

```
{
    "status": "error",
    "message": "Error in processing" 
}
```
