# Version 5.1(Deprecated)

## This version will no longer be maintained starting 1st August 2021.

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

&#x20;

#### Request Body

| Name                     | Type   | Description                                                                                                                       |
| ------------------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------- |
| caseNo                   | string | Reference code given by user                                                                                                      |
| ghostPhotoColorDetection | string | <p>Default as False.<br>Set True to do ghost photo color detection.</p>                                                           |
| screenDetection          | string | <p>Default as False.<br>Set True to do screen detection.</p>                                                                      |
| edgeDetection            | string | <p>Default as False.<br>Set True to do edge detection.</p>                                                                        |
| hologram                 | string | <p>Default as False.<br>Set True to do hologram detection.</p>                                                                    |
| colorMode                | string | <p>Default as False.<br>Set True to do color checking.</p>                                                                        |
| icTypeCheck              | string | <p>Default as False.<br>Set True to do IC type checking.</p>                                                                      |
| photoSubstitutionCheck   | string | <p>Default as False.<br>Set True to do photo substitution checking.<br></p>                                                       |
| microprintCheck          | string | <p>Default as False.<br>Set True to do microprint checking.</p>                                                                   |
| fontCheck                | string | <p>Default as False.<br>Set True to do font checking.</p>                                                                         |
| landmarkCheck            | string | <p>Default as False.<br>Set True to do landmark checking.</p>                                                                     |
| apiKey                   | string | To be assigned by Innov8tif                                                                                                       |
| idImageBase64Image       | string | Front id card image in base64                                                                                                     |
| idNumber                 | string | Id card number as shown on id card. If this value is provided, higher chance of getting higher score for font checking.           |
| otherDocList             | array  | Type can be: high quality, with flash, without flash, with no specific order. At least one of the listed field above is required. |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "f5a2b235-3e05-45dd-9ca2-0afe4476a0d6",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-mykad-header",
                    "label": "Kad Pengenalan Header",
                    "value": "62.883500000000005",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxx?type=l-mykad-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-mykad-logo",
                    "label": "MyKad Logo",
                    "value": "86.7302",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxx?type=l-mykad-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-my-flag-logo",
                    "label": "Malaysia Flag",
                    "value": "93.38260000000001",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxx?type=l-my-flag-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-chip",
                    "label": "Chip",
                    "value": "80.6771",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxx?type=l-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-hibiscus",
                    "label": "Hibiscus",
                    "value": "74.3468",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxx?type=l-hibiscus",
                    "refImageUrl": null
                },
                {
                    "code": "l-msc",
                    "label": "MSC",
                    "value": "89.17439999999999",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxxx?type=l-msc",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "belowImageText",
            "label": "Text Below IC Face",
            "componentList": [
                {
                    "code": "belowImageText",
                    "label": "Text Below IC Face",
                    "value": " None ",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxx?type=belowImageText",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "font",
            "label": "MyKad Font Checking Result",
            "componentList": [
                {
                    "code": "f-id-no",
                    "label": "ID No",
                    "value": "Pass",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxx?type=f-id-no",
                    "refImageUrl": "/public/image/v2/xxxxxxxxxxxxxxxxxxx?type=f-id-no-ref"
                }
            ]
        },
        {
            "method": "microprint",
            "label": "Microprint Score",
            "componentList": [
                {
                    "code": "microprint",
                    "label": "Microprint",
                    "value": "9",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxx?type=microprint",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Hologram Visible,Hologram Visible",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxx?type=hologram",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "substitution",
            "label": "Ghost Photo Comparison",
            "componentList": [
                {
                    "code": "substitution",
                    "label": "Substitution Score",
                    "value": "86.63142",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "docType",
            "label": "MyKad Type",
            "componentList": [
                {
                    "code": "docType",
                    "label": "IC Type",
                    "value": "New IC",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color",
                    "value": "Colored Image",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "edge",
            "label": "Edge Detection",
            "componentList": [
                {
                    "code": "edge",
                    "label": "Edge Detection",
                    "value": "Edge Not Detected,Edge Not Detected",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screenDetection",
                    "label": "Screen Detection",
                    "value": "Cautious",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "ghostPhotoColorDetection",
            "label": "Ghost Photo Color Detection",
            "componentList": [
                {
                    "code": "ghostPhotoColorDetection",
                    "label": "Ghost Photo Color Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "holoFace",
            "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=holoFace"
        },
        {
            "tag": "idFace",
            "imageUrl": "/public/image/v2/xxxxxxxxxxxxxx?type=idFace"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### Input Example

```
{
    "apiKey": "apiKey",
    "caseNo": "",
    "idImageBase64Image": "xxxxxxxxxxxxxx",
    "idNumber": "",
    "otherDocList": [
        {
            "base64Image": "xxxxxxxxxxx",
            "type": "high_quality"
        },
        {
            "base64Image": "xxxxxxxxx",
            "type": "without_flash"
        },
        {
            "base64Image": "xxxxxxxxx",
            "type": "with_flash"
        }
    ],
    "photoSubstitutionCheck": true,
    "edgeDetection": true,
    "fontCheck": true,
    "hologram": true,
    "icTypeCheck": true,
    "landmarkCheck": true,
    "microprintCheck": true,
    "screenDetection":true,
    "ghostPhotoColorDetection":true
}
```

{% file src="/files/-Lxu3XhKA\_yWnWECWRBD" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-old.innov8tif.com/okaydoc/malaysia/my-id-card-front/version-5.1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
