For the complete documentation index, see llms.txt. This page is also available as Markdown.

Versions

Get Document Type helps to identify the type of document that has been sent to the API

Version 1

To get the Document Type for each of the submitted documents

POST 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

Provided by the Innov8tif

imageFormat*

string

Set to JPG, JPEG, PNG, BMP, GIF, TIFF, TIF depending of the image format OR leave it blank if not sure

imageEnabled

boolean

Set to True - Cropped document image will be returned

Request Code Block
{
    "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
}
Response Code Block
{
    "status": "success",
    "message": "success",
    "document_type": "Malaysia - Id Card #2" 
}
Response Code Block
{
    "status": "error"
}
{
    // Response
}

Postman Collection

OkayID-GetDocumentType

Last updated