> 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/okaydoc/cambodia/kh-id-card-front/version-2.md).

# Version 2

<mark style="color:green;">`POST`</mark> `https://okaydocdemo.innov8tif.com/ekyc/api/ekyc/v2/doc-verify/kh-id-front`

#### Request Body

| Name                   | Type   | Description                                                           |
| ---------------------- | ------ | --------------------------------------------------------------------- |
| fontCheck              | string | <p>Default is True.<br>To enable /disable ID Tamper Detection</p>     |
| photoSubstitutionCheck | string | <p>Default is True.<br>To enable/disable photo substitution check</p> |
| hologram               | string | <p>Default is True.<br>To enable/disable hologram detection</p>       |
| screenDetection        | string | <p>Default is True.<br>To enable/disable screen detection</p>         |
| colorMode              | string | <p>Default is True.<br>To enable/disable color detection.</p>         |
| idBrightnessDetection  | string | <p>Default is True.<br>To enable/disable id brightness detection</p>  |
| idBlurDetection        | string | <p>Default is True.<br>To enable/disable id blurriness detection</p>  |
| landmarkCheck          | string | <p>Default is True.<br>To enable/disable landmark check</p>           |
| caseNo                 | string | Reference code given by user                                          |
| apiKey                 | string | To be assigned by Innov8tif                                           |
| idImageBase64Image     | string | Front id card image in base64                                         |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "c03e4ecb-81aa-4416-83b2-e7a225e7b101",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-kh-id-front-landmark1",
                    "label": "Landmark 1",
                    "value": "97.12206721305847",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=l-kh-id-front-landmark1",
                    "refImageUrl": null
                },
                {
                    "code": "l-kh-id-front-landmark2",
                    "label": "Landmark 2",
                    "value": "94.71385478973389",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=l-kh-id-front-landmark2",
                    "refImageUrl": null
                },
                {
                    "code": "l-kh-id-front-landmark3",
                    "label": "Landmark 3",
                    "value": "97.7009654045105",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=l-kh-id-front-landmark3",
                    "refImageUrl": null
                },
                {
                    "code": "l-kh-id-front-landmark4",
                    "label": "Landmark 4",
                    "value": "97.96249270439148",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=l-kh-id-front-landmark4",
                    "refImageUrl": null
                },
                {
                    "code": "l-kh-id-front-landmark5",
                    "label": "Landmark 5",
                    "value": "93.39374303817749",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=l-kh-id-front-landmark5",
                    "refImageUrl": null
                },
                {
                    "code": "l-kh-id-front-landmark6",
                    "label": "Landmark 6",
                    "value": "98.3284592628479",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=l-kh-id-front-landmark6",
                    "refImageUrl": null
                },
                {
                    "code": "l-kh-id-front-landmark7",
                    "label": "Landmark 7",
                    "value": "98.90614151954651",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=l-kh-id-front-landmark7",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBlurDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "ID Blur Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "ID Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Fail",
                    "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=hologram",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "substitution",
            "label": "Substitution Checking",
            "componentList": [
                {
                    "code": "substitution",
                    "label": "Substitution Checking",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idTamper",
            "label": "ID Tamper Detection",
            "componentList": [
                {
                    "code": "idTamper",
                    "label": "ID Tamper Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/c03e4ecb-81aa-4416-83b2-e7a225e7b101?type=cropId"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### Input Example

```
{
    "apiKey": "apiKey",
    "caseNo": "CASE 123",
    "idImageBase64Image": "/9j/4AAQSkZJ...fYs1wRtQHt//Z\r\n",
    "landmarkCheck": true,
    "idBlurDetection":true,
    "idBrightnessDetection": true,
    "colorMode":true,
    "screenDetection":false,
    "hologram":false,
    "photoSubstitutionCheck":false,
    "fontCheck":false
}
```

{% file src="/files/-MaalKJ4xLOKHw-zyWTa" %}
