# Version 1

<mark style="color:green;">`POST`</mark> `https://okayiddemo.innov8tif.com/okayid/api/v1/th-ocr`

#### Request Body

| Name              | Type   | Description                                    |
| ----------------- | ------ | ---------------------------------------------- |
| apiKey            | string | To be assigned by Innov8tif                    |
| base64ImageString | string | Front ID card image in base64 encrypted string |
| backImage         | string | Back ID card image in base64 encrypted string  |
| faceImageEnabled  | string | Set to True. Return cropped id face image      |

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

```
{
    "status": "success",
    "message": "successfully performed OCR ",
    "front_detection_score": 0.836729072034359,
    "address": "ฒนามสกุล ดี. เณฑ๒",
    "en_dob": "11 Apr. 1979",
    "en_expire": "11 Apr. 2018",
    "en_fname": "Natta",
    "en_init": "Miss",
    "en_issue": "11 Mar. 2009",
    "en_lname": "Chaichua",
    "face": "/9j/4AAQSkZJ.......",
    "id_number": "3123300144131",
    "religion": "",
    "th_dob": "ฒนามสกุล น ด",
    "th_expire": "11 เม.ย. 2558",
    "th_fname": "",
    "th_init": "",
    "th_issue": "11 มี.ค. 2552",
    "th_lname": "",
    "back_detection_score": 0.9875280658404033,
    "back_number": "-"
}
```

{% endtab %}
{% endtabs %}

### Input Example

```
{
    "base64ImageString": "/9j/4AAQS......",
    "backImage":"/9j/4AAQ.......",
    "apiKey":"apikey",               
    "faceImageEnabled":true
}
```

{% file src="<https://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-MRU72K3-Qf_vxIh8v1o%2F-MRU7HfYT7FdKeU_9h6l%2FOkayID-Thai%20OCR.postman_collection.json?alt=media&token=4d4ffb07-baf2-48c1-aaa7-2ea67439a44e>" %}
