POST
/
split
import os
from reducto import Reducto

client = Reducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),  # This is the default and can be omitted
)
split_response = client.split.run(
    document_url="string",
    split_description=[{
        "description": "description",
        "name": "name",
    }],
)
print(split_response.result)
{
  "usage": {
    "num_pages": 123
  },
  "result": {
    "section_mapping": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
document_url
required

The URL of the document to be processed. You can provide one of the following:

  1. A publicly available URL
  2. A presigned S3 URL
  3. A reducto:// prefixed URL obtained from the /upload endpoint after directly uploading a document
split_description
object[]
required

The configuration options for processing the document.

options
object
advanced_options
object
experimental_options
object
split_rules
string
default:Split the document into the applicable sections. Sections may only overlap at their first and last page if at all.

The rules for splitting the document.

Response

200
application/json
Successful Response
usage
object
required
result
object
required

The extracted response in your provided schema. This is a list of dictionaries. If disbale_chunking is True (default), then it will be a list of length one.