# Versions

## Version 1

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

#### Request Body

| Name                                                | Type    | Description                                                                        |
| --------------------------------------------------- | ------- | ---------------------------------------------------------------------------------- |
| apiKey                                              | string  | To be assigned by Innov8tif                                                        |
| base64ImageString<mark style="color:red;">\*</mark> | string  | Front id card/passport image in base64                                             |
| backImage                                           | string  | Back id card in base64                                                             |
| imageFormat                                         | string  | Clarify the image format: jpg, jpeg, png, bmp, gif, tiff, tif                      |
| imageEnabled                                        | boolean | <p>True - Cropped image will be returned<br>False - No image will be returned </p> |

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

```
{
    "status": "success",
    "message": "",
    "result": [
        {
            "ListVerifiedFields": {
                "pFieldMaps": [
                    {
                        "wLCID": 0,
                        "FieldType": 1,
                        "wFieldType": 1,
                        "Field_MRZ": null,
                        "Field_Visual": "PHL",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 2,
                        "wFieldType": 2,
                        "Field_MRZ": null,
                        "Field_Visual": "xxxxxxxxxx",
                        "Field_Barcode": "xxxxxxxxxxx",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 3,
                        "wFieldType": 3,
                        "Field_MRZ": null,
                        "Field_Visual": "2/25/2013",
                        "Field_Barcode": "2/25/2013",
                        "Matrix": [
                            0,
                            0,
                            2,
                            2,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 5,
                        "wFieldType": 5,
                        "Field_MRZ": null,
                        "Field_Visual": "2/25/1983",
                        "Field_Barcode": "2/25/1983",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 9,
                        "wFieldType": 9,
                        "Field_MRZ": null,
                        "Field_Visual": null,
                        "Field_Barcode": "FAREN xxxxxx KATE",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 11,
                        "wFieldType": 11,
                        "Field_MRZ": null,
                        "Field_Visual": "FIL",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 12,
                        "wFieldType": 12,
                        "Field_MRZ": null,
                        "Field_Visual": "F",
                        "Field_Barcode": "F",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 13,
                        "wFieldType": 13,
                        "Field_MRZ": null,
                        "Field_Visual": "5 ft 2 in",
                        "Field_Barcode": "5 ft 2 in",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 14,
                        "wFieldType": 14,
                        "Field_MRZ": null,
                        "Field_Visual": "149 lbs",
                        "Field_Barcode": "149 lbs",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 17,
                        "wFieldType": 17,
                        "Field_MRZ": null,
                        "Field_Visual": "Z635 D-2 AGUHO ST JUNA SUB MATINA DC",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 22,
                        "wFieldType": 22,
                        "Field_MRZ": null,
                        "Field_Visual": "2",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 25,
                        "wFieldType": 25,
                        "Field_MRZ": null,
                        "Field_Visual": null,
                        "Field_Barcode": "FAREN KERSTEEN KATE MANALILI",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 38,
                        "wFieldType": 38,
                        "Field_MRZ": null,
                        "Field_Visual": "Philippines",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 146,
                        "wFieldType": 146,
                        "Field_MRZ": null,
                        "Field_Visual": null,
                        "Field_Barcode": "MANALILI",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 185,
                        "wFieldType": 185,
                        "Field_MRZ": null,
                        "Field_Visual": "37",
                        "Field_Barcode": "37",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 351,
                        "wFieldType": 351,
                        "Field_MRZ": null,
                        "Field_Visual": "L02",
                        "Matrix": [
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "wLCID": 0,
                        "FieldType": 364,
                        "wFieldType": 364,
                        "Field_MRZ": null,
                        "Field_Visual": "0",
                        "Field_Barcode": "0",
                        "Matrix": [
                            0,
                            0,
                            2,
                            2,
                            0,
                            0,
                            0,
                            0,
                            3,
                            0
                        ]
                    }
                ]
            }
        }
    ]
}
```

{% endtab %}

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

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

#### Postman Collection

{% file src="/files/9lXlmSztKCjxgjJhgUIm" %}
OkayDoc Data Consistency Check v1
{% endfile %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api2-ekycapis.innov8tif.com/okaydoc/okaydoc-all/data-consistency-check/versions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
