> 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/indonesia/idn-e-ktp-front/versions.md).

# Versions

## Version 2

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

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

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "65858c7a-cd3c-4df8-9961-0ee7dd734f8c",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ektp-front-nik",
                    "label": "Nik",
                    "value": "96.13292813301086",
                    "imageUrl": "/public/image/v2/65858c7a-cd3c-4df8-9961-0ee7dd734f8c?type=l-ektp-front-nik",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-nama-alamat",
                    "label": "Nama Alamat",
                    "value": "92.19563007354736",
                    "imageUrl": "/public/image/v2/65858c7a-cd3c-4df8-9961-0ee7dd734f8c?type=l-ektp-front-nama-alamat",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-kecamatan",
                    "label": "Rt Rw Kecamatan",
                    "value": "76.8908679485321",
                    "imageUrl": "/public/image/v2/65858c7a-cd3c-4df8-9961-0ee7dd734f8c?type=l-ektp-front-kecamatan",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-agama",
                    "label": "Agama",
                    "value": "45.33436894416809",
                    "imageUrl": "/public/image/v2/65858c7a-cd3c-4df8-9961-0ee7dd734f8c?type=l-ektp-front-agama",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-penduduk-kartu",
                    "label": "Penduduk Kartu",
                    "value": "0",
                    "imageUrl": "/public/image/v2/65858c7a-cd3c-4df8-9961-0ee7dd734f8c?type=l-ektp-front-penduduk-kartu",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "blurrinessDetection",
            "label": "ID Blur Detection",
            "componentList": [
                {
                    "code": "blurrinessDetection",
                    "label": "ID Blur Detection",
                    "value": "Fail",
                    "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": "screenDetection",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screenDetection",
                    "label": "Screen Detection",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/65858c7a-cd3c-4df8-9961-0ee7dd734f8c?type=cropId"
        }
    ]}
```

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/PLeVB8r1QauuACqv6iaI" %}
OkayDoc e-KTP Front v2
{% endfile %}

## Version 1

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

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

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "9d625a1d-67ee-44e6-ba34-37ee241b9161",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-ektp-front-nik",
                    "label": "Nik",
                    "value": "96.13292813301086",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxxxx?type=l-ektp-front-nik",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-nama-alamat",
                    "label": "Nama Alamat",
                    "value": "92.19563007354736",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=l-ektp-front-nama-alamat",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-kecamatan",
                    "label": "Rt Rw Kecamatan",
                    "value": "76.8908679485321",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxx?type=l-ektp-front-kecamatan",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-agama",
                    "label": "Agama",
                    "value": "45.33436894416809",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxxxx?type=l-ektp-front-agama",
                    "refImageUrl": null
                },
                {
                    "code": "l-ektp-front-penduduk-kartu",
                    "label": "Penduduk Kartu",
                    "value": "0",
                    "imageUrl": "/public/image/v2/xxxxxxxxxxxx?type=l-ektp-front-penduduk-kartu",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/xxxxxxxxxxxxx?type=cropId"
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

{% file src="/files/IbWbVUF8ipefU8JeMp75" %}
OkayDoc e-KTP Front
{% endfile %}


---

# 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:

```
GET https://api2-ekycapis.innov8tif.com/okaydoc/okaydoc-all/supported-documents/indonesia/idn-e-ktp-front/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.
