> For the complete documentation index, see [llms.txt](https://api-old.innov8tif.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-old.innov8tif.com/emas-ekyc-portal/centralize-okaydoc/passport.md).

# Passport

<mark style="color:green;">`POST`</mark> `https://ekycportaldemo.innov8tif.com/api/ekyc/okaydoc`

#### Request Body

| Name          | Type   | Description                                                                                                                                                                                                                                                   |
| ------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| version       | string | Default version is 2. Details can be checked at <https://api.innov8tif.com/okaydoc/passport>                                                                                                                                                                  |
| fullSizeImage | string | Full-sized passport image in base64                                                                                                                                                                                                                           |
| halfSizeImage | string | Half-sized passport image in base64                                                                                                                                                                                                                           |
| 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 country - OTHER<br>This will return color and screen detection result only.</p> |
| type          | string | passport                                                                                                                                                                                                                                                      |
| journeyId     | string | Retrieve from 'Create JourneyID' API                                                                                                                                                                                                                          |

{% tabs %}
{% tab title="200 SGP's passport response
use the following prefix to get landmark image
<https://okaydocdev.innov8tif.com/ekyc>" %}

```
{
    "status": "success",
    "messageCode": "api.success",
    "id": "11fac847-3d12-4287-b4f8-cb2f8dcfd220",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "header",
                    "label": "Header Landmark",
                    "value": "97.59235382080078",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=header",
                    "refImageUrl": null
                },
                {
                    "code": "passport",
                    "label": "Passport Landmark",
                    "value": "98.92524480819702",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=passport",
                    "refImageUrl": null
                },
                {
                    "code": "type",
                    "label": "Type Landmark",
                    "value": "97.5203275680542",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=type",
                    "refImageUrl": null
                },
                {
                    "code": "code",
                    "label": "Country Code Landmark",
                    "value": "97.4453330039978",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=code",
                    "refImageUrl": null
                },
                {
                    "code": "passportNo",
                    "label": "Passport Number Landmark",
                    "value": "97.82481789588928",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=passportNo",
                    "refImageUrl": null
                },
                {
                    "code": "name",
                    "label": "Name Landmark",
                    "value": "97.98277020454407",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=name",
                    "refImageUrl": null
                },
                {
                    "code": "nationality",
                    "label": "Nationality Landmark",
                    "value": "97.41796851158142",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=nationality",
                    "refImageUrl": null
                },
                {
                    "code": "dob",
                    "label": "Date Of Birth Landmark",
                    "value": "96.86586856842041",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=dob",
                    "refImageUrl": null
                },
                {
                    "code": "sex",
                    "label": "Sex Landmark",
                    "value": "97.33027815818787",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=sex",
                    "refImageUrl": null
                },
                {
                    "code": "placeOfBirth",
                    "label": "Place Of Birth Landmark",
                    "value": "97.60100841522217",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=placeOfBirth",
                    "refImageUrl": null
                },
                {
                    "code": "issueDate",
                    "label": "Date Of Issue Landmark",
                    "value": "97.05001711845398",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=issueDate",
                    "refImageUrl": null
                },
                {
                    "code": "authority",
                    "label": "Issuing Authority Landmark",
                    "value": "97.09389209747314",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=authority",
                    "refImageUrl": null
                },
                {
                    "code": "expiryDate",
                    "label": "Date Of Expiry Landmark",
                    "value": "96.788889169693",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=expiryDate",
                    "refImageUrl": null
                },
                {
                    "code": "signature",
                    "label": "Holder Signature Landmark",
                    "value": "97.57274985313416",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=signature",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "ocr",
            "label": "Ocr Analysis Result",
            "componentList": [
                {
                    "code": "ocr-passportNumberDotRoi",
                    "label": "Dotted Passport Number in Full Passport",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=ocr-passportNumberDotRoi",
                    "refImageUrl": null
                },
                {
                    "code": "ocr-passportName",
                    "label": "Name",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=ocr-passportName",
                    "refImageUrl": null
                },
                {
                    "code": "ocr-passportDob",
                    "label": "DOB",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=ocr-passportDob",
                    "refImageUrl": null
                },
                {
                    "code": "ocr-expiryDate",
                    "label": "Expiry Date",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=ocr-expiryDate",
                    "refImageUrl": null
                },
                {
                    "code": "ocr-passportNoHalf",
                    "label": "Passport No (Half)",
                    "value": "NA",
                    "imageUrl": "/public/passport/image/11fac847-3d12-4287-b4f8-cb2f8dcfd220?type=ocr-passportNoHalf",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBlurDetection",
            "label": "Blurriness Detection",
            "componentList": [
                {
                    "code": "idBlurDetection",
                    "label": "Blurriness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "idBrightnessDetc",
            "label": "Brightness Detection",
            "componentList": [
                {
                    "code": "idBrightnessDetc",
                    "label": "Brightness Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "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
                }
            ]
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### Input Example

```
{
    "journeyId":"7851b4e3-df09-4ab6-8091-xxxxxx",
    "type":"passport",
    "version": "3",
    "country": "SGP",
    "halfSizeImage":"",
    "fullSizeImage":""
}
```

{% hint style="info" %}
Get the Postman Collection\
<https://api.innov8tif.com/emas-ekyc-portal/postman-collection>
{% endhint %}
