> For the complete documentation index, see [llms.txt](https://api2-ekycportal.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-ekycportal.innov8tif.com/emas-ekyc-portal/centralized-okaydoc/non-passport/sample-input.md).

# Sample Input

{% hint style="warning" %}
Please make sure to follow the version respectively [here](https://api2-ekycportal.innov8tif.com/emas-ekyc-portal/centralized-okaydoc/supported-document-non-passport). On the last table's column, there is a **"*****Endpoint Version*****"** link to follow the "version": **"X"** for each doctype. Please use the latest version for each doctype. &#x20;
{% endhint %}

### Input Example for MyKas

{% code title="Request Code Block" %}

```
{
    "journeyId":"7851b4e3-df09-4ab6-8091-xxxxxxxx",
    "type":"nonpassport",
    "idImageBase64Image": "",
    "version": "2",
    "docType":"mykas"
}
```

{% endcode %}

{% hint style="info" %}
If the ID card is Malaysia's MyKad, additional parameters can be added as below.&#x20;
{% endhint %}

### Input Example for MyKad (OkayDoc Version 7)

{% code title="Request Code Block" %}

````
```postman_json
{
    "journeyId":"",
    "type":"nonpassport",
    "idImageBase64Image": "",
    "version": "7",
    "docType":"mykad",
    "landmarkCheck":true,
    "fontCheck":true,
    "microprintCheck":true,
    "photoSubstitutionCheck":true,
    "icTypeCheck":true,
    "colorMode":true,
    "hologram":true,
    "screenDetection":true,
    "ghostPhotoColorDetection":true,
    "idBlurDetection":true,
    "idBrightnessDetection":true,
    "otherDocList": [
 
        {
            "base64Image": "",
            "type": "with_flash"
        }
    ]
}
```
````

{% endcode %}

### Input Example for MyKad (OkayDoc Version 7-1)

````
```postman_json
{
    "journeyId":"87988a23-a465-4042-a2f1-4d6294d13a92",
    "type":"nonpassport",
    "idImageBase64Image": "",
    "version": "7-1",
    "docType":"mykad",
    "landmarkCheck": true,
    "fontCheck": true,
    "microprintCheck": false,
    "photoSubstitutionCheck": true,
    "icTypeCheck": true,
    "colorMode": true,
    "hologram": false,
    "screenDetection": true,
    "ghostPhotoColorDetection": true,
    "islamFieldTamperingDetection":"true",
    "qualityCheckDetection":"false"    
}
```
````

### Input Example for Cambodia ID

```
{
    "journeyId":"",
    "type":"nonpassport",
    "idImageBase64Image": "/9j/4QaMRXhpZgAATU0AKgAAAAgA..........",
    "version": "2",
    "docType":"khIdFront",
    "landmarkCheck": true,
    "idBlurDetection": true,
    "idBrightnessDetection": true,
    "colorMode": true,
    "screenDetection": true,
    "hologram": true,
    "photoSubstitutionCheck": true,
    "fontCheck": true,
    "idTamper": true
}
```

{% hint style="info" %}
If the document is Cambodia's ID card, additional parameters can be added.
{% endhint %}

### Lists of ID Documents that supported flash-image as a secondary image

* MyKad Front
* Cambodia ID Front
* Indonesia eKTP Front
* Hong Kong ID Front
* China ID Front
* Philippines Driving License
* Singapore ID Front
* Malaysia Driving License
* Philippines SSS
* Philippines UMID

{% code title="Add second "with flash" image" %}

```
    "otherDocList": [
        {
            "base64Image": "",
            "type": "with_flash"
        }
    ],
```

{% endcode %}

{% hint style="danger" %}
User **will need add the chunk of code block above** into the request parameter to submit second image to improve the passing rate of the Hologram Detection *(requires light to increase the visibility)*&#x20;
{% endhint %}

### Full example of image with flash (Cambodia ID Front)

```
{
    "journeyId":"",
    "type":"nonpassport",
    "idImageBase64Image": "/9j/4QaMRXhpZgAATU0AKgAAAAgA..........",
    "version": "2",
    "docType":"khIdFront",
    "landmarkCheck": true,
    "idBlurDetection": true,
    "idBrightnessDetection": true,
    "colorMode": true,
    "screenDetection": true,
    "hologram": true,
    "photoSubstitutionCheck": true,
    "fontCheck":true,
    "idTamper": true,
    "otherDocList": [
        {
            "base64Image": "",
            "type": "with_flash"
        }
    ],
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://api2-ekycportal.innov8tif.com/emas-ekyc-portal/centralized-okaydoc/non-passport/sample-input.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
