Documents OCR

Sending a document image to be identified - Base URL: api.vlenseg.com/v1

General Input For Any Request

POST https://api.vlenseg.com/v1/<endpoint_path>

Headers

Name
Type
Description

Content-Type*

string

application/json

ApiKey*

string

API Key

Request Body

Name
Type
Description

image*

string

The base 64 encoding of the document image

transaction_id

GUID

The transaction Id. Required if this image belongs to an existing transaction. If null then a new transaction Id will be generated and returned in the response to be used in subsequent requests for the same transaction.

client_transaction_id

string

Any client generated Id that is recognized and used by the client. It will be returned in the response as is.

{
  "data": <Data model according to each model described below>,
  "Services": {
      "Validations": {
        "validation_errors": [
          {
            "field": <string>,
            "value": <string>,
            "errors": [
              {
                "code": <int>,
                "message": <string>
              }
            ]
          }
        ]
      },
      "spoofing": {
        "fake": <bool>
      },
      "classification": {
        "doc_type": <string>
      }
    }
  },
  "error_code": <int>,
  "error_message": <string>
}

National ID front side

Sends National ID Front Image

POST https://<base-url>/ocr/id/front

Use parameters mentioned in general input above, check the data model in responses below.

National ID back side

Sends National ID Back Image

POST https://<base-url>/ocr/id/back

Use parameters mentioned in general input above, check the data model in responses below.

Car License front side

Sends Car License Front Image

POST https://<base-url>/ocr/car/license/front

Use parameters mentioned in general input above, check the data model in responses below.

Car License back side

Sends Car License Back Image

POST https://<base-url>/ocr/car/license/back

Use parameters mentioned in general input above, check the data model in responses below.

Passport

Sends Passport Image

POST https://<base-url>/ocr/passport

Driving License

Sends Driving License Image

POST https://<base-url>/ocr/driving_license

License Plate

Sends License Plate Image

POST https://<base-url>/ocr/license_plate

Multi card

Sends an image containing multiple documents

POST https://<base-url>/ocr/multi

General OCR

Sends any image containing any general text to be recognized and extracted

POST https://<base-url>/ocr/general

Postman collection for documents OCR

Last updated