# Version 1

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

#### Request Body

| Name              | Type    | Description                                                   |
| ----------------- | ------- | ------------------------------------------------------------- |
| backImage         | string  | Back id card image in base64                                  |
| docTypeEnabled    | boolean | Set True to return document type                              |
| apiKey            | string  | To be assigned by Innov8tif                                   |
| base64ImageString | string  | id card/passport image in base64                              |
| imageFormat       | string  | Clarify the image format: jpg, jpeg, png, bmp, gif, tiff, tif |

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

```
{
    "status": "success",
    "message": "",
    "result": [
        {
            "ListVerifiedFields": {
                "pFieldMaps": [
                    {
                        "wLCID": 0,
                        "FieldType": 17,
                        "wFieldType": 17,
                        "Field_MRZ": null,
                        "Field_Visual": "NO 22 JATAN BB 3/3^NANDAR RUDIT PUCHONG^47000 PUCHONG^SELANGOR",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 71172108,
                        "wFieldType": 12,
                        "Field_MRZ": null,
                        "Field_Visual": "UNKNOWN",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 433,
                        "wFieldType": 433,
                        "Field_MRZ": null,
                        "Field_Visual": "WARGANEGARA",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 25,
                        "wFieldType": 25,
                        "Field_MRZ": null,
                        "Field_Visual": "LIEW HEY LEE",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 2,
                        "wFieldType": 2,
                        "Field_MRZ": null,
                        "Field_Visual": "861200556488",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 363,
                        "wFieldType": 363,
                        "Field_MRZ": null,
                        "Field_Visual": "OTHER",
                        "Matrix": null
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 57,
                        "wFieldType": 57,
                        "Field_MRZ": null,
                        "Field_Visual": "861200-55-6488-02-02",
                        "Matrix": null
                    }
                ]
            }
        }
    ],
    "documentType": null
}
```

{% endtab %}
{% endtabs %}

### Input Example

{% code title="JSON " %}

```
{
    "base64ImageString": "/9j/4QaMRXh",
    "backImage": "/9j/4QaMRXh",
    "apiKey":"{{apiKey}}",               
    "imageFormat":".jpg",
    "docTypeEnabled":true
}
```

{% endcode %}

{% file src="<https://253651193-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpQle72tz7-gm8Gk4Bg%2F-MSjlkRWqfzlaV2Pscq_%2F-MSjmKdTtWr1xX3aCbAD%2FOkayID-Lite.postman_collection.json?alt=media&token=76001486-f489-4e6c-9a7b-eb46ab667988>" %}
