# Version 2

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

#### Request Body

| Name          | Type   | Description                                                                                                                                                                                                                                                                 |
| ------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| caseNo        | string | Reference code given by user                                                                                                                                                                                                                                                |
| apiKey        | string | To be assigned by Innov8tif                                                                                                                                                                                                                                                 |
| country       | string | <p>IND - India; <br>SGP - Singapore; <br>IDN - Indonesia; <br>BGD - Bangladesh; <br>MMR - Myanmar<br>NPL - Nepal;<br>PAK - Pakistan;<br>PHL - Philippines;<br>VNM - Vietnam <br><br>OTHER - other countries<br>This will return color and screen detection result only.</p> |
| halfSizeImage | string | Half-sized passport image in base64                                                                                                                                                                                                                                         |
| fullSizeImage | string | Full-sized passport image in base64                                                                                                                                                                                                                                         |

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": null,
    "id": "98a1fb7e-b9b9-4398-a00e-aeee340569cb",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "passport",
                    "label": "Passport Landmark",
                    "value": "82.73033499717712",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=passport",
                    "refImageUrl": null
                },
                {
                    "code": "type",
                    "label": "Type Landmark",
                    "value": "69.60739493370056",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=type",
                    "refImageUrl": null
                },
                {
                    "code": "countryCode",
                    "label": "Country Code Landmark",
                    "value": "64.17597532272339",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=countryCode",
                    "refImageUrl": null
                },
                {
                    "code": "passportNo",
                    "label": "Passport Number Landmark",
                    "value": "54.463547468185425",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=passportNo",
                    "refImageUrl": null
                },
                {
                    "code": "surname",
                    "label": "Surname Landmark",
                    "value": "71.06456756591797",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=surname",
                    "refImageUrl": null
                },
                {
                    "code": "givenName",
                    "label": "Given Name Landmark",
                    "value": "72.5123405456543",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=givenName",
                    "refImageUrl": null
                },
                {
                    "code": "nationality",
                    "label": "Nationality Landmark",
                    "value": "72.50398993492126",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=nationality",
                    "refImageUrl": null
                },
                {
                    "code": "dob",
                    "label": "Date Of Birth Landmark",
                    "value": "71.727055311203",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=dob",
                    "refImageUrl": null
                },
                {
                    "code": "citizenship",
                    "label": "Citizenship Number Landmark",
                    "value": "58.645421266555786",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=citizenship",
                    "refImageUrl": null
                },
                {
                    "code": "sex",
                    "label": "Sex Landmark",
                    "value": "72.27083444595337",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=sex",
                    "refImageUrl": null
                },
                {
                    "code": "placeOfBirth",
                    "label": "Place Of Birth Landmark",
                    "value": "64.38571810722351",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=placeOfBirth",
                    "refImageUrl": null
                },
                {
                    "code": "issueDate",
                    "label": "Date Of Issue Landmark",
                    "value": "70.86160778999329",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=issueDate",
                    "refImageUrl": null
                },
                {
                    "code": "issueAuthority",
                    "label": "Issuing Authority",
                    "value": "53.99036407470703",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=issueAuthority",
                    "refImageUrl": null
                },
                {
                    "code": "expiryDate",
                    "label": "Date Of Expiry Landmark",
                    "value": "69.29136514663696",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=expiryDate",
                    "refImageUrl": null
                },
                {
                    "code": "holderSignature",
                    "label": "Holder Signature Landmark",
                    "value": "54.51650619506836",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=holderSignature",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "ocr",
            "label": "Ocr Analysis Result",
            "componentList": [
                {
                    "code": "roi-passportNoDot",
                    "label": "Passport No (Dot)",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=roi-passportNoDot",
                    "refImageUrl": null
                },
                {
                    "code": "roi-passportName",
                    "label": "Name",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=roi-passportName",
                    "refImageUrl": null
                },
                {
                    "code": "roi-passportDob",
                    "label": "DOB",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=roi-passportDob",
                    "refImageUrl": null
                },
                {
                    "code": "roi-expiryDate",
                    "label": "Expiry Date",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=roi-expiryDate",
                    "refImageUrl": null
                },
                {
                    "code": "roi-passportNoHalf",
                    "label": "Passport No (Half)",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/98a1fb7e-b9b9-4398-a00e-aeee340569cb?type=roi-passportNoHalf",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "blurrinessDetection",
            "label": "Blurriness Detection",
            "componentList": [
                {
                    "code": "blurrinessDetection",
                    "label": "Blurriness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "brightnessDetection",
            "label": "Brightness Detection",
            "componentList": [
                {
                    "code": "brightnessDetection",
                    "label": "Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorDetection",
            "label": "Color Detection",
            "componentList": [
                {
                    "code": "colorDetection",
                    "label": "Color Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}
```

{% endtab %}

{% tab title="201 Please note that OTHER will only check for color detection and screen detection" %}

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": null,
    "id": "cbcd992e-d7c0-47d1-9489-911d68a3eeae",
    "methodList": [
        {
            "method": "colorMode",
            "label": "Color Detection",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": null
}
```

{% endtab %}
{% endtabs %}

### Input Example

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

```
{
    "apiKey": "apikey",
    "caseNo": "CASE 1",
    "country": "",
    "halfSizeImage": "",    
    "fullSizeImage": ""
}
```

{% endtab %}
{% endtabs %}

{% file src="/files/-M1-2FPqIAjQ3ZUOSFyo" %}
OkayDoc Passport v2
{% 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://api-old.innov8tif.com/okaydoc/passport/version-2.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.
