# 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="<https://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-Ltx6EINofzKwHBpiW4O%2F-Ltx77Q3UKKscGBG962V%2FOkayID-GetDocumentType.postman_collection.json?alt=media&token=fd0a492d-4536-466d-adbf-c178a650ec81>" %}
OkayID-GetDocumentType
{% endfile %}
