Server
Our API infrastructure is hosted in Frankfurt, Germany, ensuring high performance and data sovereignty. The system is architected for reliability and scalability. For enterprise requirements, such as dedicated instances or specific geographic locations, please contact us.
Any Doc Split API - version 1 (v1)
This endpoint split documents so that each document has pages only from its own.
Click the following box to see the detailed description of this API if the box is not expanded.
Parameters
| api-key (header) |
API key which you will receive with your subscription here |
| file (form-data) |
File of the receipts or invoices. To be sent in the body as form-data with the key 'file'. If the document has multiple pages, you can attach them all as separate image files (supported image formats include: png, jpg, tif) or as a PDF.
|
Responses
| 200 |
OK is returned to indicate that the document was processed successfully.
The response contains a list of page segments. Each page segment is an array of two digits, from which the first one indicate the start page of the segment and the second one the end page of the segment.
Suppose we have a document with 5 pages which needs to be splitted. We can split the document into two segments: the first segment contains the first 3 pages and the second segment contains the last 2 pages. The response will be a list of two arrays, where the first array contains the values [1, 3] and the second array contains the values [4, 5].
An example result can look like this:
[
[
1,
3
],
[
4,
5
]
]
|
| 403 |
BadCredentialException is used to indicate that for example the API key is not valid.
|
| 404 |
FileNotFoundException is used to indicate that there is no file found.
|
| 405 |
MethodNotAllowedException: Access to the API not allowed. There are multiple reasons possible: you reached the agreed quota, your contract expired or another internal error. Please contact us if the error persists.
|
| 500 |
InternalServerErrorException is used to indicate that something went wrong. Reason is not known.
|