Endpoint
Request Header
All requests must include an API key in theAuthorization header.
| Key | Value |
|---|---|
| Authorization | api-key [your api key] |
Request Body
The request must be sent as multipart/form-data.Document Source
| Key | Type | Value |
|---|---|---|
| file | File | [binary file upload] |
Extraction Options
| Key | Type | Default | Value |
|---|---|---|---|
| templateName | Text | [template name] | |
| filterName | Text | [filter name] | |
| documentSplitting | Text | false | true/false |
| returnDocuments | Text | false | true/false |
| returnText | Text | false | true/false |
| schemaChunking | Text | auto | auto/combined |
| password | Text | [password] |
Request Example
Response Example
Below is an example of a success response.| Field | Type | Values | Description |
|---|---|---|---|
| success | Boolean | true/false | Indicates the success or failure of the request as a whole. |
| data | Objects | - | Contains all of the data relating to the request. |
| completionTime | Decimal | ≥ 0 | The time it took to process the entire request. |
| originalName | String | - | The name of the original document sent in the request. |
| processedPages | Whole Number | ≥ 0 | The total number of pages processed that the original document contained. |
| documents | Array | - | Contains the information relating to each document extracted. When document splitting is on, then there will be multiple document objects. |
| extracted | Boolean | true/false | Indicates whether the document was extracted. When there is a filter in the extraction process, some documents will be false and not extracted depending on the rules specified in the filter. |
| averageDocumentConfidence | Decimal | 0–100 | Indicates the average confidence across all fields extracted from the document expressed as a percentage. |
| sourcePages | Array | page numbers | Pages from which this document was extracted |
| usedTemplateName | String | - | The template used to extract the document. |
| content | Object | field-name → object | This holds the information relating to each field extracted. |
| value | String | - | The value of the field extracted. |
| confidence | Decimal | 0–100 | The confidence value for that specific extracted field. |
| page | Whole Number | ≥ 1 | The page from where the document was extracted. |
| boundingBox | Objects | - | The 4 coordinates creating the box that surrounds the information extracted. |
| returnedText | String | - | Contains the text blob of all the text found on the document. |
| returnedDocumentBase64 | String | Base64 | Base64-encoded PDF document |