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

NameTypeDescription

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" 
}

Postman Collection

Last updated