# Accura Face Liveness

### IMPORTANT NOTES:

1. Max file upload size is 1 MB.
2. Results are returned in JSON format.
3. We DO NOT save any User information on our server.

<mark style="color:green;">`POST`</mark> `https://api.accurascan.com/v2/api/liveness`

#### Headers

| Name                                      | Type   | Description  |
| ----------------------------------------- | ------ | ------------ |
| Api-Key<mark style="color:red;">\*</mark> | String | Your API Key |

#### Request Body

| Name                                              | Type   | Description                     |
| ------------------------------------------------- | ------ | ------------------------------- |
| liveness\_image<mark style="color:red;">\*</mark> | String | Upload Image for liveness check |

<details>

<summary><em>Postman Collection</em></summary>

{% code overflow="wrap" %}

```json
{"collection":{"info":{"_postman_id":"2d1ca9bb-828b-42da-993b-a8da569b05b2","name":"Accura Liveness","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","updatedAt":"2024-08-27T08:28:07.000Z","createdAt":"2024-08-27T08:28:04.000Z","lastUpdatedBy":"20339982","uid":"20339982-2d1ca9bb-828b-42da-993b-a8da569b05b2"},"item":[{"name":"https://api.accurascan.com/v2/api/liveness","id":"81275e02-282d-4e5a-b9d1-6afc6fb7ad60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Key","value":"Your Api Key","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"liveness_image","type":"file","value":null}]},"url":{"raw":"https://api.accurascan.com/v2/api/liveness","protocol":"https","host":["api","accurascan","com"],"path":["v2","api","liveness"]}},"response":[],"uid":"20339982-81275e02-282d-4e5a-b9d1-6afc6fb7ad60"}]}}
```

{% endcode %}

</details>

<figure><img src="/files/2INcFDWERKiThvMH6xTV" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The preferred threshold is **55%**, meaning that if an image achieves a score above this threshold, the face shown is considered ***Live***; otherwise, it is identified as a ***Spoof***.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.accurascan.com/language/web-api/accura-face-liveness.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
