from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
document = client.v2.documents.retrieve(
"documentId",
)
print(document)
{
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>",
"mimeType": "application/pdf",
"ocrResponse": "<any>"
}
Retrieves comprehensive details for a specific document, including its content or OCR data if available, and a presigned URL.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
document = client.v2.documents.retrieve(
"documentId",
)
print(document)
{
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>",
"mimeType": "application/pdf",
"ocrResponse": "<any>"
}
The unique identifier of the document.
Successfully retrieved full document details.