> For the complete documentation index, see [llms.txt](https://api2-ekycapis.innov8tif.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api2-ekycapis.innov8tif.com/okaydoc/okaydoc-all/supported-documents/malaysia/mys-mykas/versions.md).

# 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="/files/HtYDAoyQNH7ijlrdHERg" %}
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="/files/lzOPJHRDDqf1VpTcY1DY" %}
OkayDoc MyKas
{% endfile %}
