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
Unzip file and return PDFs
Given a document ID representing a ZIP file, unzip it, traverse the directory structure and return all PDFs found as a list of documents
POST
/
api
/
v2
/
documents
/
{documentId}
/
unzip
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.unzip(
"documentId",
)
print(response.documents)
Copy
{
"documents": [
{
"id": "<string>",
"fileName": "<string>"
}
]
}
Path Parameters
The ID of the document to unzip. Must be a ZIP file.
Response
200
application/json
Default Response
The response is of type object
.
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.unzip(
"documentId",
)
print(response.documents)
Copy
{
"documents": [
{
"id": "<string>",
"fileName": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.