# Versions

## Version 3

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

* Added Tampering Check for ID number *`(Below KETUA PENGARAH PENDAFTARAN NEGARA)`*

#### Request Body

| Name                                                 | Type   | Description                  |
| ---------------------------------------------------- | ------ | ---------------------------- |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif  |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Back id card image in base64 |

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

```json
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "c6ce4823-f0c4-4d17-b622-90c40d077859",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-signature",
                    "label": "Signature Landmark",
                    "value": "78.26530000000001",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-tng",
                    "label": "TnG Landmark",
                    "value": "90.2957",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-80k",
                    "label": "80k Landmark",
                    "value": "44.3834",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-tower",
                    "label": "Towers Landmark",
                    "value": "98.127",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-crown",
                    "label": "Crown Landmark",
                    "value": "76.63799999999999",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-malaysia",
                    "label": "Malaysia Text Landmark",
                    "value": "98.7963",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-kppn",
                    "label": "KPPN Landmark",
                    "value": "55.53829999999999",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-atm",
                    "label": "ATM Landmark",
                    "value": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-meps",
                    "label": "MEPS Landmark",
                    "value": "0",
                    "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": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idTamper",
            "label": "Tamper Detection",
            "componentList": [
                {
                    "code": "idTamper",
                    "label": "Tamper Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}

```

{% endtab %}
{% endtabs %}

####

## Version 2

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

Added Quality Check and Screen Presentation Check

#### Request Body

| Name                                                 | Type   | Description                  |
| ---------------------------------------------------- | ------ | ---------------------------- |
| apiKey<mark style="color:red;">\*</mark>             | string | To be assigned by Innov8tif  |
| idImageBase64Image<mark style="color:red;">\*</mark> | string | Back id card image in base64 |

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

```json
[
	{
		"method": "landmark",
		"label": "Landmark Analysis Result",
		"result": "84.3643,90.973,48.3335,48.5711,70.2704,23.1815,60.6098,0,0",
		"componentResultList": [
			{
				"code": "l-signature",
				"label": "Signature Landmark",
				"value": "84.3643",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-tng",
				"label": "TnG Landmark",
				"value": "90.973",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-80k",
				"label": "80k Landmark",
				"value": "48.3335",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-tower",
				"label": "Towers Landmark",
				"value": "48.5711",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-crown",
				"label": "Crown Landmark",
				"value": "70.2704",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-malaysia",
				"label": "Malaysia Text Landmark",
				"value": "23.1815",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-kppn",
				"label": "KPPN Landmark",
				"value": "60.6098",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-atm",
				"label": "ATM Landmark",
				"value": "0",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			},
			{
				"code": "l-meps",
				"label": "MEPS Landmark",
				"value": "0",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "idBlurDetection",
		"label": "ID Blur Detection",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "idBlurDetection",
				"label": "ID Blur Detection",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "idBrightnessDetc",
		"label": "ID Brightness Detection",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "idBrightnessDetc",
				"label": "ID Brightness Detection",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "colorMode",
		"label": "Color Mode",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "colorMode",
				"label": "Color Mode",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	},
	{
		"method": "screen",
		"label": "Screen Detection",
		"result": "Pass",
		"componentResultList": [
			{
				"code": "screen",
				"label": "Screen Detection",
				"value": "Pass",
				"imagePath": null,
				"refImagePath": null,
				"score": null
			}
		]
	}
]

```

{% endtab %}
{% endtabs %}

####

## Version 1

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

#### 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 | Back id card image in base64 |

{% tabs %}
{% tab title="200 New MyKad back's response" %}

```json
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "00a632af-f6f7-485b-9dae-4f8211709690",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-signature",
                    "label": "Signature Landmark",
                    "value": "83.0052",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-signature",
                    "refImageUrl": null
                },
                {
                    "code": "l-tng",
                    "label": "TnG Landmark",
                    "value": "92.81230000000001",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-tng",
                    "refImageUrl": null
                },
                {
                    "code": "l-80k",
                    "label": "80k Landmark",
                    "value": "92.4028",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-80k",
                    "refImageUrl": null
                },
                {
                    "code": "l-tower",
                    "label": "Towers Landmark",
                    "value": "78.2558",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-tower",
                    "refImageUrl": null
                },
                {
                    "code": "l-crown",
                    "label": "Crown Landmark",
                    "value": "76.7101",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-crown",
                    "refImageUrl": null
                },
                {
                    "code": "l-malaysia",
                    "label": "Malaysia Text Landmark",
                    "value": "62.0873",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-malaysia",
                    "refImageUrl": null
                },
                {
                    "code": "l-kppn",
                    "label": "KPPN Landmark",
                    "value": "58.818599999999996",
                    "imageUrl": "/public/image/v2/00a632af-f6f7-485b-9dae-4f8211709690?type=l-kppn",
                    "refImageUrl": null
                },
                {
                    "code": "l-atm",
                    "label": "ATM Landmark",
                    "value": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-meps",
                    "label": "MEPS Landmark",
                    "value": "0",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}
```

{% endtab %}

{% tab title="202 Old MyKad back's response" %}

```json
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "e3442036-0e1a-4a75-a4cb-1686c35fcf98",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-signature",
                    "label": "Signature Landmark",
                    "value": "98.7171",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxx?type=l-signature",
                    "refImageUrl": null
                },
                {
                    "code": "l-tng",
                    "label": "TnG Landmark",
                    "value": "98.9934",
                    "imageUrl": "/public/image/v2/xxxxxxxxxx?type=l-tng",
                    "refImageUrl": null
                },
                {
                    "code": "l-80k",
                    "label": "80k Landmark",
                    "value": "99.34429999999999",
                    "imageUrl": null,
                    "refImageUrl": null
                },
                {
                    "code": "l-tower",
                    "label": "Towers Landmark",
                    "value": "99.1333",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=l-tower",
                    "refImageUrl": null
                },
                {
                    "code": "l-crown",
                    "label": "Crown Landmark",
                    "value": "98.9687",
                    "imageUrl": "/public/image/v2/xxxxxxxxxx?type=l-crown",
                    "refImageUrl": null
                },
                {
                    "code": "l-malaysia",
                    "label": "Malaysia Text Landmark",
                    "value": "98.9323",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=l-malaysia",
                    "refImageUrl": null
                },
                {
                    "code": "l-kppn",
                    "label": "KPPN Landmark",
                    "value": "98.2278",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-kppn",
                    "refImageUrl": null
                },
                {
                    "code": "l-atm",
                    "label": "ATM Landmark",
                    "value": "98.59609999999999",
                    "imageUrl": "/public/image/v2/xxxxxxxxx?type=l-atm",
                    "refImageUrl": null
                },
                {
                    "code": "l-meps",
                    "label": "MEPS Landmark",
                    "value": "99.0865",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-meps",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/1TyJX8KCnfdKyfs83wOm" %}
OkayDoc MyKad Back
{% endfile %}


---

# 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://api2-ekycapis.innov8tif.com/okaydoc/okaydoc-all/supported-documents/malaysia/mys-mykad-back/versions.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.
