> 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/okayid/get-document-type.md).

# Get Document Type

## Get Document Type

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

#### Request Body

| Name              | Type    | Description                            |
| ----------------- | ------- | -------------------------------------- |
| base64ImageString | string  | Front id card/passport image in base64 |
| backImage         | string  | Back id card/passport image in base64  |
| apiKey            | string  | To be assigned by Innov8tif            |
| imageFormat       | string  |                                        |
| imageEnabled      | boolean |                                        |

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

```
{
    "status": "success",
    "message": "success",
    "document_type": "Malaysia - Id Card #2" 
}
```

{% endtab %}
{% endtabs %}

### Input Example

{% code title="JSON" %}

```
{
    "base64ImageString": "/9j/4AAQSkZJRgAB...wEwJefc\r\nf//Z\r\n",
    "backImage":"/9j/4AAQSkZJRgAB...wEwJefc\r\nf//Z\r\n",
    "apiKey":"API_KEY",               
    "imageFormat":".jpg",
    "imageEnabled":true
}
```

{% endcode %}

{% file src="/files/-Ltx77Q3UKKscGBG962V" %}
OkayID-GetDocumentType
{% endfile %}
