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

# Versions

## Version 2

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

#### 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 myPR image in base64   |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "8fc6c0bf-ff01-4669-ae6e-7c6bf408615e",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-pr-flag",
                    "label": "Flag",
                    "value": "94.02863383293152",
                    "imageUrl": "/public/image/v2/8fc6c0bf-ff01-4669-ae6e-7c6bf408615e?type=l-pr-flag",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-header",
                    "label": "Header",
                    "value": "84.22603011131287",
                    "imageUrl": "/public/image/v2/8fc6c0bf-ff01-4669-ae6e-7c6bf408615e?type=l-pr-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-mypr",
                    "label": "My Pr",
                    "value": "88.79823088645935",
                    "imageUrl": "/public/image/v2/8fc6c0bf-ff01-4669-ae6e-7c6bf408615e?type=l-pr-mypr",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-chip",
                    "label": "Chip",
                    "value": "73.36655855178833",
                    "imageUrl": "/public/image/v2/8fc6c0bf-ff01-4669-ae6e-7c6bf408615e?type=l-pr-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-white-block",
                    "label": "White Block",
                    "value": "97.12769985198975",
                    "imageUrl": "/public/image/v2/8fc6c0bf-ff01-4669-ae6e-7c6bf408615e?type=l-pr-white-block",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "blurrinessDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "blurrinessDetection",
                    "label": "ID Blur Detection",
                    "value": "Cautious",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "brightnessDetection",
            "label": "ID Brightness Detection",
            "componentList": [
                {
                    "code": "brightnessDetection",
                    "label": "ID Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorDetection",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorDetection",
                    "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
                }
            ]
        }
        
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/8fc6c0bf-ff01-4669-ae6e-7c6bf408615e?type=cropId"
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/RHlbOxnPCraASe5x2cVZ" %}
OkayDoc myPR v2
{% endfile %}

## Version 1

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

#### 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 myPR image in base64   |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "03176ad8-8f05-45f7-9b23-ac95bccc63b6",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-pr-flag",
                    "label": "Flag",
                    "value": "94.02863383293152",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-pr-flag",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-header",
                    "label": "Header",
                    "value": "84.22603011131287",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-pr-header",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-mypr",
                    "label": "My Pr",
                    "value": "88.79823088645935",
                    "imageUrl": "/public/image/v2/xxxxxxxxxx?type=l-pr-mypr",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-chip",
                    "label": "Chip",
                    "value": "73.36655855178833",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-pr-chip",
                    "refImageUrl": null
                },
                {
                    "code": "l-pr-white-block",
                    "label": "White Block",
                    "value": "97.12769985198975",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxx?type=l-pr-white-block",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/xxxxxxxxx?type=cropId"
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/oEnBWgSonwNHA4Z8ydUg" %}
OkayDoc myPR&#x20;
{% endfile %}
