# Versions

## Version 7

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

&#x20;

#### Request Body

| Name                                                 | Type    | Description                                                                                                                                                                                                                                                       |
| ---------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| contentSubstitution                                  | boolean | <p><del>Default is False.</del><br><del>Set True to detect content substitution checking.</del> </p><p><em><strong>Note: Depreceated</strong></em> </p>                                                                                                           |
| idBrightnessDetection                                | boolean | <p>Default is False.<br>Set True to detect the brightness of the id image.</p>                                                                                                                                                                                    |
| idBlurDetection                                      | boolean | <p>Default is False.<br>Set True to detect the blurriness of id image</p>                                                                                                                                                                                         |
| ghostPhotoColorDetection                             | boolean | <p>Default is False.<br>Set True to do ghost photo color detection.</p>                                                                                                                                                                                           |
| screenDetection                                      | boolean | <p>Default is False.<br>Set True to do screen detection.</p>                                                                                                                                                                                                      |
| hologram                                             | boolean | <p>Default is False.<br>Set True to do hologram detection.</p>                                                                                                                                                                                                    |
| colorMode                                            | boolean | <p>Default is True.<br>Set False to disable color checking.</p>                                                                                                                                                                                                   |
| icTypeCheck                                          | boolean | <p>Default is True.<br>Set False to disable IC type checking.</p>                                                                                                                                                                                                 |
| photoSubstitutionCheck                               | boolean | <p>Default is True.<br>Set False to disable photo substitution checking.<br></p>                                                                                                                                                                                  |
| microprintCheck                                      | boolean | <p>Default is True.<br>Set False to disable microprint checking.</p>                                                                                                                                                                                              |
| fontCheck                                            | boolean | <p>Default is True.<br>Set False to disable font checking.</p>                                                                                                                                                                                                    |
| landmarkCheck                                        | boolean | <p>Default is True.<br>Set False to disable landmark checking.</p>                                                                                                                                                                                                |
| apiKey<mark style="color:red;">\*</mark>             | string  | To be assigned by Innov8tif                                                                                                                                                                                                                                       |
| idImageBase64Image<mark style="color:red;">\*</mark> | string  | <p>Front id card image in base64. Refer to the link below for image requirement.<br><https://api.innov8tif.com/okaydoc/image-quality-requirements></p>                                                                                                            |
| otherDocList                                         | array   | <p><code>"otherDocList": \[ { "base64Image": "", "type": "with\_flash" } ]</code></p><p><em><mark style="color:orange;">Note: To capture flash image for hologram detection purpose. It increase the chances to detect the hologram from OkayDoc.</mark></em></p> |

{% tabs %}
{% tab title="200 Cropped/returned images from API can be in base64 instead of imageURL based on requirement." %}

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "848a9a59-3a20-4688-b560-c23f8da7caa7",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-mykad-header",
                    "label": "Kad Pengenalan Header",
                    "value": "34.4195",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=l-mykad-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-mykad-logo",
                    "label": "MyKad Logo",
                    "value": "95.5827",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=l-mykad-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-my-flag-logo",
                    "label": "Malaysia Flag",
                    "value": "96.8136",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=l-my-flag-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-chip",
                    "label": "Chip",
                    "value": "75.511",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=l-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-hibiscus",
                    "label": "Hibiscus",
                    "value": "68.65390000000001",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=l-hibiscus",
                    "refImageUrl": null
                },
                {
                    "code": "l-msc",
                    "label": "MSC",
                    "value": "93.5061",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=l-msc",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "font",
            "label": "MyKad Font Checking Result",
            "componentList": [
                {
                    "code": "f-id-no",
                    "label": "ID No",
                    "value": "Pass",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=f-id-no",
                    "refImageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=f-id-no-ref"
                }
            ]
        },
        {
            "method": "microprint",
            "label": "Microprint Score",
            "componentList": [
                {
                    "code": "microprint",
                    "label": "Microprint",
                    "value": "12",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=microprint",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Fail,Fail",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=hologram",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "substitution",
            "label": "Ghost Photo Comparison",
            "componentList": [
                {
                    "code": "substitution",
                    "label": "Substitution Score",
                    "value": "Pass",
                    "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": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "holocolor",
            "label": "Ghost Photo Color Detection",
            "componentList": [
                {
                    "code": "holocolor",
                    "label": "Ghost Photo Color Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "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": "faceBrightnessDetc",
            "label": "Face Brightness Detection",
            "componentList": [
                {
                    "code": "faceBrightnessDetc",
                    "label": "Face Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "contentSubstitution",
            "label": "Content Substitution",
            "componentList": [
                {
                    "code": "contentSubstitution",
                    "label": "Content Substitution",
                    "value": "Pass",
                    "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=contentSubstitution",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "holoFace",
            "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=holoFace"
        },
        {
            "tag": "idFace",
            "imageUrl": "/public/image/v2/848a9a59-3a20-4688-b560-c23f8da7caa7?type=idFace"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2F9icAfXALKkQIvvL1lPre%2FOkayDoc-%20MyKad%20Front%20v7.postman_collection.rar?alt=media&token=d282b8f3-eb4b-4862-a30f-495912e614e0>" %}
OkayDoc MyKad Front v7
{% endfile %}

## Version 7-1

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

Added "Islamic field" tampering check

#### Request Body

| Name                                                 | Type    | Description                                                                                                                                                                                                                                                       |
| ---------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| idBrightnessDetection                                | boolean | <p>Default is False.<br>Set True to detect the brightness of the id image.</p>                                                                                                                                                                                    |
| idBlurDetection                                      | boolean | <p>Default is False.<br>Set True to detect the blurriness of id image.</p>                                                                                                                                                                                        |
| ghostPhotoColorDetection                             | boolean | <p>Default is False.<br>Set True to do ghost photo color detection.</p>                                                                                                                                                                                           |
| screenDetection                                      | boolean | <p>Default is False.<br>Set True to do screen detection.</p>                                                                                                                                                                                                      |
| hologram                                             | boolean | <p>Default is False.<br>Set True to do hologram detection.</p>                                                                                                                                                                                                    |
| colorMode                                            | boolean | <p>Default is True.<br>Set False to disable color checking.</p>                                                                                                                                                                                                   |
| icTypeCheck                                          | boolean | <p>Default is True.<br>Set False to disable IC type checking.</p>                                                                                                                                                                                                 |
| photoSubstitutionCheck                               | boolean | <p>Default is True.<br>Set False to disable photo substitution checking.</p>                                                                                                                                                                                      |
| microprintCheck                                      | boolean | <p>Default is True.<br>Set False to disable microprint checking.</p>                                                                                                                                                                                              |
| fontCheck                                            | boolean | <p>Default is True.<br>Set False to disable font checking.</p>                                                                                                                                                                                                    |
| landmarkCheck                                        | boolean | <p>Default is True.<br>Set False to disable landmark checking.</p>                                                                                                                                                                                                |
| islamFieldTamperingDetection                         | boolean | <p>Default is False.<br>Set True to detect tampering in the religion field of the id image.</p>                                                                                                                                                                   |
| qualityCheckDetection                                | boolean | <p>Default is False.<br>Set True to check image quality of the ID image.</p>                                                                                                                                                                                      |
| apiKey<mark style="color:red;">\*</mark>             | string  | To be assigned by Innov8tif.                                                                                                                                                                                                                                      |
| idImageBase64Image<mark style="color:red;">\*</mark> | string  | <p>Front id card image in base64. Refer to the link below for image requirement.<br><https://api.innov8tif.com/okaydoc/image-quality-requirements></p>                                                                                                            |
| otherDocList                                         | array   | <p><code>"otherDocList": \[ { "base64Image": "", "type": "with\_flash" } ]</code></p><p><em><mark style="color:orange;">Note: To capture flash image for hologram detection purpose. It increase the chances to detect the hologram from OkayDoc.</mark></em></p> |

{% tabs %}
{% tab title="200: OK Cropped/returned images from API can be in base64 instead of imageURL based on requirement." %}

```javascript
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "e2c876a5-ccec-410f-afe8-ad16dd6344ae",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-mykad-header",
                    "label": "Kad Pengenalan Header",
                    "value": "70.3362",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                },
                {
                    "code": "l-mykad-logo",
                    "label": "MyKad Logo",
                    "value": "90.6956",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                },
                {
                    "code": "l-my-flag-logo",
                    "label": "Malaysia Flag",
                    "value": "84.7683",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                },
                {
                    "code": "l-chip",
                    "label": "Chip",
                    "value": "61.5383",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                },
                {
                    "code": "l-hibiscus",
                    "label": "Hibiscus",
                    "value": "0",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                },
                {
                    "code": "l-msc",
                    "label": "MSC",
                    "value": "93.1155",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "font",
            "label": "MyKad Font Checking Result",
            "componentList": [
                {
                    "code": "f-id-no",
                    "label": "ID No",
                    "value": "Pass",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Fail",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "docType",
            "label": "MyKad Type",
            "componentList": [
                {
                    "code": "docType",
                    "label": "IC Type",
                    "value": "Old IC",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color",
                    "value": "Pass",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Fail",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "idBlurDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "ID Blur Detection",
                    "value": "Pass",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "ID Brightness Detection",
                    "value": "Pass",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "faceBrightnessDetc",
            "label": "Face Brightness Detection",
            "componentList": [
                {
                    "code": "faceBrightnessDetc",
                    "label": "Face Brightness Detection",
                    "value": "Pass",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        },
        {
            "method": "islamTamperingDetc",
            "label": "Islam Field Tampering Detection",
            "componentList": [
                {
                    "code": "islamTamperingDetc",
                    "label": "Islam Field Tampering Detection",
                    "value": "Fail",
                    "score": null,
                    "imageBase64": null,
                    "refImageBase64": null
                }
            ]
        }
    ],
    "outputImageList": null
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FxsDR8LKrELzq2Jn9TZXf%2FOkayDoc-%20MyKad%20Front%20v7-1.postman_collection.rar?alt=media&token=0cb0e3df-9211-44e1-96f3-6b570d39b1a9>" %}
OkayDoc MyKad Front v7-1
{% endfile %}

## Version 6

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

&#x20;

#### Request Body

| Name                                                 | Type    | Description                                                                                                                                                                                     |
| ---------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| caseNo                                               | string  | Reference code given by user                                                                                                                                                                    |
| livenessFaceBase64Image                              | string  | Selfie image in base64                                                                                                                                                                          |
| idBrightnessDetection                                | boolean | <p>Default is False.<br>Set True to detect the brightness of the id image.</p>                                                                                                                  |
| idBlurDetection                                      | boolean | <p>Default is False.<br>Set True to detect the blurriness of id image</p>                                                                                                                       |
| faceBrightnessDetection                              | boolean | <p>Default is False.<br>Set True to detect the brightness of the face image(livenessFaceBase64Image); If livenessFaceBase64Image is not given, idImageBase64Image will be used instead.<br></p> |
| ghostPhotoColorDetection                             | boolean | <p>Default is False.<br>Set True to do ghost photo color detection.</p>                                                                                                                         |
| screenDetection                                      | boolean | <p>Default is False.<br>Set True to do screen detection.</p>                                                                                                                                    |
| hologram                                             | boolean | <p>Default is False.<br>Set True to do hologram detection.</p>                                                                                                                                  |
| colorMode                                            | boolean | <p>Default is False.<br>Set True to do color checking.</p>                                                                                                                                      |
| icTypeCheck                                          | boolean | <p>Default is False.<br>Set True to do IC type checking.</p>                                                                                                                                    |
| photoSubstitutionCheck                               | boolean | <p>Default is False.<br>Set True to do photo substitution checking.<br></p>                                                                                                                     |
| microprintCheck                                      | boolean | <p>Default is False.<br>Set True to do microprint checking.</p>                                                                                                                                 |
| fontCheck                                            | boolean | <p>Default is False.<br>Set True to do font checking.</p>                                                                                                                                       |
| landmarkCheck                                        | boolean | <p>Default is False.<br>Set True to do landmark checking.</p>                                                                                                                                   |
| apiKey<mark style="color:red;">\*</mark>             | string  | To be assigned by Innov8tif                                                                                                                                                                     |
| idImageBase64Image<mark style="color:red;">\*</mark> | 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 Cropped/returned images from API can be in base64 instead of imageURL based on requirement." %}

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "14d4ca15-63d7-4159-92eb-25bb2977e0e5",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-mykad-header",
                    "label": "Kad Pengenalan Header",
                    "value": "34.4541",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=l-mykad-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-mykad-logo",
                    "label": "MyKad Logo",
                    "value": "95.68870000000001",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=l-mykad-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-my-flag-logo",
                    "label": "Malaysia Flag",
                    "value": "95.82770000000001",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=l-my-flag-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-chip",
                    "label": "Chip",
                    "value": "72.1268",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=l-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-hibiscus",
                    "label": "Hibiscus",
                    "value": "69.985",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=l-hibiscus",
                    "refImageUrl": null
                },
                {
                    "code": "l-msc",
                    "label": "MSC",
                    "value": "93.8832",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=l-msc",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "font",
            "label": "MyKad Font Checking Result",
            "componentList": [
                {
                    "code": "f-id-no",
                    "label": "ID No",
                    "value": "Pass",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=f-id-no",
                    "refImageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=f-id-no-ref"
                }
            ]
        },
        {
            "method": "microprint",
            "label": "Microprint Score",
            "componentList": [
                {
                    "code": "microprint",
                    "label": "Microprint",
                    "value": "12",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=microprint",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Fail,Fail",
                    "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=hologram",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "substitution",
            "label": "Ghost Photo Comparison",
            "componentList": [
                {
                    "code": "substitution",
                    "label": "Substitution Score",
                    "value": "0",
                    "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": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "holocolor",
            "label": "Ghost Photo Color Detection",
            "componentList": [
                {
                    "code": "holocolor",
                    "label": "Ghost Photo Color Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "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": "faceBrightnessDetc",
            "label": "Face Brightness Detection",
            "componentList": [
                {
                    "code": "faceBrightnessDetc",
                    "label": "Face Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "holoFace",
            "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=holoFace"
        },
        {
            "tag": "idFace",
            "imageUrl": "/public/image/v2/14d4ca15-63d7-4159-92eb-25bb2977e0e5?type=idFace"
        }
    }
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="<https://1723857616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoP1M8bTYgFFHHnAdjjta%2Fuploads%2FPjcOC2yvNX7xxwufq73X%2FOkayDoc%20-%20MyKad%20Front%20v6%20.postman_collection.rar?alt=media&token=f5cd94d0-3a16-4d6a-ac34-a2218f4af0f9>" %}
OkayDoc MyKad Front v6
{% endfile %}

## 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<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif                                                                                                       |
| idImageBase64Image<mark style="color:red;">\*</mark> | 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 %}

{% 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%2FkNwR9YwA622Qegs8QADF%2FOkayDoc%20-%20MyKad%20Front%20v5-1.postman_collection.rar?alt=media&token=9c2aa04d-1666-4e17-af56-0047562b9ec4>" %}
OkayDoc MyKad Front v5.1
{% endfile %}

## Version 5 (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/doc-verify/mykad`

#### 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 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, without specific order. At least one of the listed field above is required. |
| landmarkCheck                                        | string | <p>Default as Fault.<br>Set true to do landmark checking.</p>                                                                     |
| fontCheck                                            | string | <p>Default as Fault.<br>Set true to do font checking.</p>                                                                         |
| microprintCheck                                      | string | <p>Default as Fault.<br>Set true to do microprint  checking.</p>                                                                  |
| photoSubstitutionCheck                               | string | <p>Default as Fault.<br>Set true to do photo substitution checking.</p>                                                           |
| icTypeCheck                                          | string | <p>Default as Fault.<br>Set true to do ic type checking.</p>                                                                      |
| colorMode                                            | string | <p>Default as Fault.<br>Set true to do color checking.</p>                                                                        |
| hologram                                             | string | <p>Default as Fault.<br>Set true to do hologram checking.</p>                                                                     |
| edgeDetection                                        | string | <p>Default as Fault.<br>Set true to do edge detection</p>                                                                         |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-mykad-header",
                    "label": "Kad Pengenalan Header",
                    "value": "76.7508",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=l-mykad-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-mykad-logo",
                    "label": "MyKad Logo",
                    "value": "69.0792",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=l-mykad-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-my-flag-logo",
                    "label": "Malaysia Flag",
                    "value": "83.2025",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=l-my-flag-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-chip",
                    "label": "Chip",
                    "value": "54.8358",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=l-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-hibiscus",
                    "label": "Hibiscus",
                    "value": "57.7256",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=l-hibiscus",
                    "refImageUrl": null
                },
                {
                    "code": "l-msc",
                    "label": "MSC",
                    "value": "83.07050000000001",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?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/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=belowImageText",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "font",
            "label": "MyKad Font Checking Result",
            "componentList": [
                {
                    "code": "f-id-no",
                    "label": "ID No",
                    "value": "0.6689989566802979",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=f-id-no",
                    "refImageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=f-id-no-ref"
                }
            ]
        },
        {
            "method": "microprint",
            "label": "Microprint Score",
            "componentList": [
                {
                    "code": "microprint",
                    "label": "Microprint",
                    "value": "1",
                    "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=microprint",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "substitution",
            "label": "Ghost Photo Comparison",
            "componentList": [
                {
                    "code": "substitution",
                    "label": "Substitution Score",
                    "value": "71.4388",
                    "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": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "holoFace",
            "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=holoFace"
        },
        {
            "tag": "idFace",
            "imageUrl": "/public/image/v2/5f5d2f2d-ae72-456c-ab67-e1118d3b3f2f?type=idFace"
        }
    ]
}
```

{% 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%2Frr1oNYj5nOIuge1CQTly%2FOkayDoc%20MyKad%20Front%20v5.postman_collection.rar?alt=media&token=29f63de7-a318-4012-9204-111a7b6a6841>" %}
OkayDoc MyKad Front v5
{% endfile %}

## Version 3 (Deprecated) This version will no longer be maintained starting 1st August 2021. <a href="#this-version-will-no-longer-be-maintained-starting-1st-august-2021." id="this-version-will-no-longer-be-maintained-starting-1st-august-2021."></a>

## &#x20;

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

#### 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 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, without specific order. At least one of the listed fields above is required. |
| landmarkCheck                                        | string | <p>Default as False.<br>Set true to do landmark checking .</p>                                                                     |
| fontCheck                                            | string | <p>Default as False. <br>Set true to do font checking.</p>                                                                         |
| microprintCheck                                      | string | <p>Default as False.<br>Set true to do microprint checking.</p>                                                                    |
| photoSubstitutionCheck                               | string | <p>Default as False.<br>Set true to do photo substitution checking.</p>                                                            |
| icTypeCheck                                          | string | <p>Default as False.<br>Set true to do ic type checking.</p>                                                                       |
| colorMode                                            | string | <p>Default as False.<br>Set true to do color checking.</p>                                                                         |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "methodList": [{
        "method": "landmark",
        "label": "Landmark Analysis Result",
        "componentList": [{
            "code": "l-mykad-header",
            "label": "MyKad Header(Kad Pengenalan)",
            "value": "0.79320114851",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=l-mykad-header",
            "refImageUrl": null
        },
        {
            "code": "l-mykad-logo",
            "label": "MyKad Logo",
            "value": "0.727208554745",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=l-mykad-logo",
            "refImageUrl": null
        },
        {
            "code": "l-my-flag-logo",
            "label": "Malaysia Flag",
            "value": "0.71590679884",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=l-my-flag-logo",
            "refImageUrl": null
        },
        {
            "code": "l-chip",
            "label": "Chip",
            "value": "0.784151494503",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=l-chip",
            "refImageUrl": null
        },
        {
            "code": "l-hibiscus",
            "label": "Hibiscus",
            "value": "0.771929860115",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=l-hibiscus",
            "refImageUrl": null
        },
        {
            "code": "l-msc",
            "label": "MSC",
            "value": "0.899240195751",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=l-msc",
            "refImageUrl": null
        }]
    },
    {
        "method": "belowImageText",
        "label": "Text Below IC Face",
        "componentList": [{
            "code": "belowImageText",
            "label": "Text Below IC Face",
            "value": "WAROANeOARA",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=belowImageText",
            "refImageUrl": null
        }]
    },
    {
        "method": "font",
        "label": "MyKad Front Checking Result",
        "componentList": [{
            "code": "f-id-no",
            "label": "ID No",
            "value": "0.706493735313",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=f-id-no",
            "refImageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=f-id-no-ref" 
        }]
    },
    {
        "method": "microprint",
        "label": "Microprint Score",
        "componentList": [{
            "code": "microprint",
            "label": "Microprint",
            "value": "1",
            "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=microprint",
            "refImageUrl": null
        }]
    },
    {
        "method": "substitution",
        "label": "Substitution Checking",
        "componentList": [{
            "code": "substitution",
            "label": "Substitution Score",
            "value": "79.86243",
            "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
        }]
    }],
    "outputImageList": [{
        "tag": "holoFace",
        "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=holoFace" 
    },
    {
        "tag": "idFace",
        "imageUrl": "/public/image/v2/d569a1a1-9ed2-42ea-ba8a-3f59ccd26db6?type=idFace" 
    }]
}

```

{% 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%2FkxJGu0swP12by1laUchv%2FOkayDoc%20-%20MyKad%20Front%20v3.postman_collection.rar?alt=media&token=43289a65-01c7-4298-a7da-2192e78433f0>" %}
OkayDoc MyKad Front v3
{% endfile %}
