# Versions

## Version 1

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

#### Request Body

| Name                                                 | Type   | Description                     |
| ---------------------------------------------------- | ------ | ------------------------------- |
| apiKey<mark style="color:red;">\*</mark>             | String | Provided by Innov8tif Solutions |
| idImageBase64Image<mark style="color:red;">\*</mark> | String | China ID in base64 format       |

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

````javascript
```json
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "387058cf-2348-469b-b4ba-59b2f2bed57b",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ch-id-name",
                    "label": "Name Landmark",
                    "value": "79.17066812515259",
                    "imageUrl": "/public/image/v2/387058cf-2348-469b-b4ba-59b2f2bed57b?type=l-ch-id-name",
                    "refImageUrl": null
                },
                {
                    "code": "l-ch-id-sex",
                    "label": "Sex Landmark",
                    "value": "72.60765433311462",
                    "imageUrl": "/public/image/v2/387058cf-2348-469b-b4ba-59b2f2bed57b?type=l-ch-id-sex",
                    "refImageUrl": null
                },
                {
                    "code": "l-ch-id-religion",
                    "label": "Religion Landmark",
                    "value": "82.40464925765991",
                    "imageUrl": "/public/image/v2/387058cf-2348-469b-b4ba-59b2f2bed57b?type=l-ch-id-religion",
                    "refImageUrl": null
                },
                {
                    "code": "l-ch-id-dob",
                    "label": "DoB Landmark",
                    "value": "76.2109637260437",
                    "imageUrl": "/public/image/v2/387058cf-2348-469b-b4ba-59b2f2bed57b?type=l-ch-id-dob",
                    "refImageUrl": null
                },
                {
                    "code": "l-ch-id-address",
                    "label": "Address Landmark",
                    "value": "81.20334148406982",
                    "imageUrl": "/public/image/v2/387058cf-2348-469b-b4ba-59b2f2bed57b?type=l-ch-id-address",
                    "refImageUrl": null
                },
                {
                    "code": "l-ch-id-residential-id-no",
                    "label": "Residential ID No Landmark",
                    "value": "88.83332014083862",
                    "imageUrl": "/public/image/v2/387058cf-2348-469b-b4ba-59b2f2bed57b?type=l-ch-id-residential-id-no",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBlurDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "ID Blur Detection",
                    "value": "Cautious",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "ID Brightness Detection",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/387058cf-2348-469b-b4ba-59b2f2bed57b?type=cropId"
        }
    ]
}
```
````

{% endtab %}

{% tab title="400: Bad Request Failed to response" %}

```javascript
{
    status:"error"
}
```

{% endtab %}
{% endtabs %}
