Some documents may contain more documents in one document file. Eagle Doc Any Doc Split API is a powerful tool for splitting pages of documents, so that each document contains only pages from its own. The API is designed to handle a wide range of document types, including invoices, receipts, bank statements, resumes, delivery sheets, and passports.

We continually refine the algorithm's performance. While the interface retains its current form, there will be no adjustments to the API version. However, distinct version numbers will be evident in the 'version' field of the JSON response.

Server

We currently operate one server in Frankfurt, Germany. This server is supported by a load balancer, allowing it to scale smoothly based on the workload. If you require a dedicated server or specific location, please get in touch with us.

alternative



Any Doc Split Endpoints




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
Name Description
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
Code Description
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.