# 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)

![](https://253651193-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LpQle72tz7-gm8Gk4Bg%2Fuploads%2F7airw7M3FfRsNRZr1Mck%2Fpostman.png?alt=media\&token=90523c65-5cc1-4ce5-8a48-660660903f32)

## 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" 
}
```
