POST/api/gw/services/document_extraction
Authorizations
string
required
API key used to authenticate requests.
Body
string
required
Base64 encoded document image or file.
string
Original filename of the document.
Response
- 200
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 OCR processing results and metadata.
number
Total number of processed pages.
number
Total OCR processing time in milliseconds.
string
Identifier for stored artifacts/results.
array
List of extracted page-level results.
number
Index of the processed page.
string
Processing status of the page (e.g., SUCCESS, FAILED).
string
Detected document type (e.g., INVOICE).
string
Document side processed (e.g., FRONT, BACK).
object
Key-value pairs of extracted fields (e.g., invoice_number, total_amount).
number
Confidence score for the extracted data (0 to 1).
array
List of warnings encountered during processing.
string
Base64 or reference string for the processed page image.
string
Reason for failure if processing was not successful.
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).