> For the complete documentation index, see [llms.txt](https://docs.accurascan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.accurascan.com/language/web-api/accura-id-liveness.md).

# Accura ID 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/id-liveness`](https://api.accurascan.com/v2/api/id-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> | File   | Upload Image for liveness check |
| country\_code<mark style="color:red;">\*</mark>   | String | Add the Country Code            |
| card\_code<mark style="color:red;">\*</mark>      | String | Add the Card Code               |

<details>

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

{% code overflow="wrap" %}

```json
{"collection":{"info":{"_postman_id":"a9781476-c268-4fcc-a40a-15db2b0ace02","name":"ID Liveness","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","updatedAt":"2024-12-09T06:51:46.000Z","createdAt":"2024-12-09T06:50:52.000Z","lastUpdatedBy":"20339982","uid":"20339982-a9781476-c268-4fcc-a40a-15db2b0ace02"},"item":[{"name":"https://api.accurascan.com/v2/api/id-liveness","id":"e3262727-a571-4894-b92b-1736a9e132ed","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},{"key":"country_code","value":"country_code","type":"text"},{"key":"card_code","value":"card_code","type":"text"}]},"url":{"raw":"https://api.accurascan.com/v2/api/id-liveness","protocol":"https","host":["api","accurascan","com"],"path":["v2","api","id-liveness"]}},"response":[],"uid":"20339982-e3262727-a571-4894-b92b-1736a9e132ed"}]}}
```

{% endcode %}

</details>

<figure><img src="/files/OIqUKfykab5P09Dfnvz6" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
