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
Task
Get task state
Retrieves the state of a task. This is typically used for tasks that need to persist state across multiple requests.
GET
/
api
/
v2
/
tasks
/
{taskId}
/
state
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
)
state = client.v2.tasks.state.get(
"taskId",
)
print(state)
Copy
{}
Path Parameters
The unique identifier of the task to get the state of.
Response
200
application/json
The state of the task.
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
)
state = client.v2.tasks.state.get(
"taskId",
)
print(state)
Copy
{}
Assistant
Responses are generated using AI and may contain mistakes.