# Versions

## Version 2

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

#### Request Body

| Name                                                 | Type   | Description                  |
| ---------------------------------------------------- | ------ | ---------------------------- |
| caseNo                                               | string | Reference code given by user |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif  |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Front myKas image in base64  |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "c2a6b056-80bd-4f7f-91f0-053b3c77c81c",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-kas-flag",
                    "label": "Flag",
                    "value": "98.6260175704956",
                    "imageUrl": "/public/image/v2/c2a6b056-80bd-4f7f-91f0-053b3c77c81c?type=l-kas-flag",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-header",
                    "label": "Header",
                    "value": "97.2849428653717",
                    "imageUrl": "/public/image/v2/c2a6b056-80bd-4f7f-91f0-053b3c77c81c?type=l-kas-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-mykas",
                    "label": "My Kas",
                    "value": "97.65569567680359",
                    "imageUrl": "/public/image/v2/c2a6b056-80bd-4f7f-91f0-053b3c77c81c?type=l-kas-mykas",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-chip",
                    "label": "Chip",
                    "value": "97.6776123046875",
                    "imageUrl": "/public/image/v2/c2a6b056-80bd-4f7f-91f0-053b3c77c81c?type=l-kas-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-green-block",
                    "label": "Green Block",
                    "value": "97.46013879776001",
                    "imageUrl": "/public/image/v2/c2a6b056-80bd-4f7f-91f0-053b3c77c81c?type=l-kas-green-block",
                    "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 Detection",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Detection",
                    "value": "Pass",
                    "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/c2a6b056-80bd-4f7f-91f0-053b3c77c81c?type=cropId" 
        }
    ]
}

```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FJ3jBPvXkuxmoF9NvvzsZ%2FOkayDoc%20-%20myKas%20v2.postman_collection.rar?alt=media&token=ddc19ac3-f29a-4739-ba6d-7fabc2c606b1>" %}
OkayDoc MyKas v2
{% endfile %}

## Version 1

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

#### Request Body

| Name                                                 | Type   | Description                  |
| ---------------------------------------------------- | ------ | ---------------------------- |
| caseNo                                               | string | Reference code given by user |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif  |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Front myKas image in base64  |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "92f6064a-8d50-41a4-9216-baa89d3e77a1",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-kas-flag",
                    "label": "Flag",
                    "value": "98.6260175704956",
                    "imageUrl": "/public/image/v2/xxxxxx?type=l-kas-flag",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-header",
                    "label": "Header",
                    "value": "97.2849428653717",
                    "imageUrl": "/public/image/v2/xxxxxxx?type=l-kas-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-mykas",
                    "label": "My Kas",
                    "value": "97.65569567680359",
                    "imageUrl": "/public/image/v2/xxxxxx?type=l-kas-mykas",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-chip",
                    "label": "Chip",
                    "value": "97.6776123046875",
                    "imageUrl": "/public/image/v2/xxxxxxxxx?type=l-kas-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-kas-green-block",
                    "label": "Green Block",
                    "value": "97.46013879776001",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-kas-green-block",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/xxxxxxxxxx?type=cropId"
        }
    ]
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FkBRLT9XxbCUScd9OR1eO%2FOkayDoc-MyKas.postman_collection.rar?alt=media&token=29017083-608e-4826-bf44-c5f8ae3c63b5>" %}
OkayDoc MyKas
{% endfile %}
