Skip to main content
Extract structured data from identity documents by submitting front and back images in base64 format. The service performs Optical Character Recognition (OCR) and returns parsed fields such as name, document number, and date of birth.
POST/api/gw/services/document_ocr

Authorizations


Body

string
required
Base64 encoded front image of the document.
string
Base64 encoded back image of the document (if applicable).
string
Type of document (e.g., passport, id_card, driver_license).
string
Issuing country of the document (ISO3 format recommended).

Response

boolean
Indicates whether the request was processed successfully.
string
Unique identifier for the API request.
string
Identifier used for tracing the request across systems.
object
Contains extracted document details.
string
Detected document type (e.g., PASSPORT).
string
Country that issued the document (ISO code).
string
Extracted document number.
string
Extracted first name.
string
Extracted last name.
string
Extracted date of birth (YYYY-MM-DD).
string
Extracted gender (e.g., M/F).
string
Extracted nationality (ISO code).
string
Document issue date (YYYY-MM-DD).
string
Document expiry date (YYYY-MM-DD).
boolean
Indicates whether the document is expired.
string
Machine-readable zone line 1.
string
Machine-readable zone line 2.
string
Machine-readable zone line 3 (if available).
number
Confidence score for extracted data (0 to 1).
string
Extracted face image in base64 format (data URL).
object | null
Contains error details if the request fails; otherwise null.
number
Time taken to process the request in milliseconds.
string
Timestamp when the request was processed (ISO 8601 format).