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
Presigned URL for upload
Generates a presigned URL that can be used to directly upload a file to storage. Returns the URL and document metadata.
POST
/
api
/
v2
/
documents
/
presigned-upload-url
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.presigned_upload_url(
file_name="fileName",
mime_type="application/zip",
)
print(response.id)
Copy
{
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>"
}
Body
application/json
Response
200
application/json
Successfully generated presigned URL and initial document metadata.
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.presigned_upload_url(
file_name="fileName",
mime_type="application/zip",
)
print(response.id)
Copy
{
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.