> 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/thailand/th-id-card/versions.md).

# Versions

## Version 2

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

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

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "f9214ff9-651e-49c7-a4fc-96474923b98d",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-th-id-logo",
                    "label": "Logo",
                    "value": "94.43879723548889",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-id-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-no",
                    "label": "Identification Number",
                    "value": "82.02647566795349",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-id-no",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-card",
                    "label": "Thai National ID Card",
                    "value": "64.56148028373718",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-id-card",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-name",
                    "label": "Name",
                    "value": "96.70687317848206",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-id-name",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-lastname",
                    "label": "Last Name",
                    "value": "93.98202896118164",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-id-lastname",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-dob",
                    "label": "Date Of Birth",
                    "value": "90.9083902835846",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-dob",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-issue-d",
                    "label": "Date Of Issue",
                    "value": "90.08411169052124",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-issue-d",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-sign",
                    "label": "Sign",
                    "value": "86.03547215461731",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-id-sign",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-exp-d",
                    "label": "Date Of Expiry",
                    "value": "88.9076292514801",
                    "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?type=l-th-id-exp-d",
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "colorMode",
            "label": "Color Mode",
            "componentList": [
                {
                    "code": "colorMode",
                    "label": "Color Mode",
                    "value": "Pass",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "screen",
            "label": "Screen Detection",
            "componentList": [
                {
                    "code": "screen",
                    "label": "Screen Detection",
                    "value": "Cautious",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        },
        {
            "method": "hologram",
            "label": "Hologram",
            "componentList": [
                {
                    "code": "hologram",
                    "label": "Hologram",
                    "value": "Fail",
                    "imageUrl": null,
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/f9214ff9-651e-49c7-a4fc-96474923b98d?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/WgDN2ng4Ha7gVlvJNweY" %}
OkayDoc TH ID Front v2
{% endfile %}

## Version 1

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

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

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

```
{
    "status": "success",
    "messageCode": "api.success",
    "message": "",
    "id": "d4320833-fee5-44cf-9729-1d75bf177863",
    "methodList": [
        {
            "method": "landmark",
            "label": "Landmark Analysis Result",
            "componentList": [
                {
                    "code": "l-th-id-logo",
                    "label": "Logo",
                    "value": "99.57505464553833",
                    "imageUrl": "/public/image/v2/xxxxxxx?type=l-th-id-logo",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-no",
                    "label": "Identification Number",
                    "value": "99.39576387405396",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-th-id-no",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-card",
                    "label": "Thai National ID Card",
                    "value": "99.58637356758118",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-th-id-card",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-name",
                    "label": "Name",
                    "value": "99.47056174278259",
                    "imageUrl": "/public/image/v2/xxxxxxx?type=l-th-id-name",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-lastname",
                    "label": "Last Name",
                    "value": "99.35234785079956",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-th-id-lastname",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-dob",
                    "label": "Date Of Birth",
                    "value": "99.39907789230347",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-th-dob",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-issue-d",
                    "label": "Date Of Issue",
                    "value": "99.19782280921936",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-th-issue-d",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-sign",
                    "label": "Sign",
                    "value": "99.27135109901428",
                    "imageUrl": "/public/image/v2/xxxxxxx?type=l-th-id-sign",
                    "refImageUrl": null
                },
                {
                    "code": "l-th-id-exp-d",
                    "label": "Date Of Expiry",
                    "value": "99.12567138671875",
                    "imageUrl": "/public/image/v2/xxxxxxxx?type=l-th-id-exp-d",
                    "refImageUrl": null
                }
            ]
        }
    ],
    "outputImageList": [
        {
            "tag": "cropId",
            "imageUrl": "/public/image/v2/xxxxxxx?type=cropId"
        }
    ]
Version 1}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/RnjMq754QwNYi1lrZKoj" %}
OkayDoc TH ID Front
{% endfile %}
