# Fake ID Detection

<mark style="color:green;">`POST`</mark> `http://okaydocdev.innov8tif.com/ekyc/api/v1/fakeid/detection`

#### Request Body

| Name        | Type    | Description                                 |
| ----------- | ------- | ------------------------------------------- |
| base64      | boolean | Set True: A base64 string will be returned. |
| topNo       | number  | Number of record to be returned             |
| base64Image | string  | base64 string of input image                |
| apiKey      | string  | To be assigned by Innov8tif                 |

{% tabs %}
{% tab title="200 " %}

```
{
    "status": "success",
    "messageCode": null,
    "message": null,
    "results": [
        {
            "imageUrl": "/fakeid/image/sample240",
            "score": "0.7731073498725891",
            "base64String": "/9j/4ARg.............E4VKE16M//Z"
        },
        {
            "imageUrl": "/fakeid/image/sample288",
            "score": "0.7632227540016174",
            "base64String": "/9j/4AAQ............TdGSlvrc//Z"
        },
        {
            "imageUrl": "/fakeid/image/sample236",
            "score": "0.759501576423645",
            "base64String": "/9j/4AkZJRg..........Lmi09T//Z"
        }
    ]
}

```

{% endtab %}
{% endtabs %}

### Input Example

{% code title="JSON" %}

```
{
    "apiKey":"apiKey",
    "base64Image":"/9j/4A....AQS",
    "topNo": 10,
    "base64":true
}
```

{% endcode %}

{% file src="<https://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-M-ly2wYCjmM4NJTu6oB%2F-M-m0KOSFJ6keoaIYW2v%2FFakeID%20Detection.postman_collection.json?alt=media&token=c74c872f-85e8-4184-8a99-e2611bc328b2>" %}
FakeID Detection
{% endfile %}
