Workflow-run
Task
Document
- GETDocument metadata
- GETFull document details
- GETDocument CSV content
- POSTUnzip file and return PDFs
- POSTGenerate CSV document
- POSTPresigned URL for upload
- POSTClassify document (async)
- POSTSplit document (async)
- POSTCreate documents from splits
- POSTLegacy extract document (async)
- POSTDocument extraction (async)
- POSTRender document body
- POSTGenerate document from template (async)
- POSTTransform JSON to HTML
- POSTDocument reasoning (async)
- POSTSearch across documents
Async-result
Communication
Clearinghouse
Ledger
Integration - Snowflake
Document
Create documents from splits
Creates new documents from specified page splits of an existing document.
POST
/
api
/
v2
/
documents
/
create-from-splits
Copy
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.documents.create_from_splits(
document={
"id": "id",
"file_name": "fileName",
},
splits=[0],
)
print(response.created_documents)
Copy
{
"createdDocuments": [
{
"id": "<string>",
"fileName": "<string>",
"startPageInclusive": 123,
"endPageInclusive": 123
}
]
}
Body
application/json
Response
200
application/json
Successfully created new documents from splits.
Copy
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.documents.create_from_splits(
document={
"id": "id",
"file_name": "fileName",
},
splits=[0],
)
print(response.created_documents)
Copy
{
"createdDocuments": [
{
"id": "<string>",
"fileName": "<string>",
"startPageInclusive": 123,
"endPageInclusive": 123
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.