POST
/
split_async
import os
from reducto import Reducto

client = Reducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),  # This is the default and can be omitted
)
response = client.split.run_job(
    document_url="string",
    split_description=[{
        "description": "description",
        "name": "name",
    }],
)
print(response.job_id)
{
  "job_id": "<string>"
}

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.

webhook
object
priority
boolean
default:false

If True, attempts to process the job with priority if the user has priority processing budget available; by default, sync jobs are prioritized above async jobs.

Response

200
application/json
Successful Response
job_id
string
required