Skip to main content
POST
/
api
/
v2
/
documents
/
split
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
response = client.v2.documents.split(
    document={
        "id": "id",
        "file_name": "fileName",
    },
    split_description=[{
        "description": "description",
        "name": "name",
    }],
)
print(response.async_result_id)
{
  "asyncResultId": "<string>"
}

Body

application/json
document
object
required

The document to be split.

splitDescription
object[]
required

Split description configuration.

Minimum length: 1
splitRules
string

Optional split rules prompt for the splitter.

Response

Accepted. Document splitting process initiated.

asyncResultId
string
required

The ID to track the asynchronous splitting task.

I