Download OpenAPI specification:Download
API for managing individual pages within OCR invoice jobs
Retrieve a list of all OCR invoice job pages with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new OCR invoice job page with the provided data
| job required | string OCR invoice job ID this page belongs to |
| pageNumber required | integer >= 1 Page number within the document |
| pageUrl required | string <uri> URL of the page image |
| pageType | string Enum: "cover" "header" "content" "footer" "summary" "attachment" Type of page content |
object | |
Array of objects | |
object Additional metadata |
{- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific OCR invoice job page by its ID
| id required | string OCR invoice job page ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing OCR invoice job page with new data
| id required | string OCR invoice job page ID |
| job required | string OCR invoice job ID this page belongs to |
| pageNumber required | integer >= 1 Page number within the document |
| pageUrl required | string <uri> URL of the page image |
| pageType | string Enum: "cover" "header" "content" "footer" "summary" "attachment" Type of page content |
object | |
Array of objects | |
object Additional metadata |
{- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "job": "60f7b1b3e4b0e8b3f8b3f8b4",
- "pageNumber": 1,
- "status": "pending",
- "pageType": "content",
- "imageProperties": {
- "width": 0,
- "height": 0,
- "dpi": 0,
- "colorSpace": "rgb",
- "format": "png",
- "size": 0
}, - "preprocessing": {
- "enhanced": true,
- "deskewed": true,
- "denoised": true,
- "binarized": true,
- "rotationAngle": 0
}, - "ocrResults": {
- "text": "string",
- "confidence": 1,
- "words": [
- {
- "text": "string",
- "confidence": 1,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "blocks": [
- {
- "text": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "blockType": "text"
}
]
}, - "extractedFields": { },
- "tableData": [
- {
- "rowIndex": 0,
- "columnIndex": 0,
- "cellText": "string",
- "confidence": 0,
- "boundingBox": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}
}
], - "processingTime": 0,
- "startedAt": "2023-01-15T08:00:00Z",
- "completedAt": "2023-01-15T08:01:00Z",
- "errorLog": "string",
- "retryCount": 0,
- "qualityScore": 1,
- "annotations": [
- {
- "type": "correction",
- "text": "string",
- "coordinates": {
- "x": 0,
- "y": 0,
- "width": 0,
- "height": 0
}, - "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}