GET
/
api
/
v2
/
documents
/
{documentId}
import os
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
document = client.v2.documents.retrieve(
    "documentId",
)
print(document)
{
  "id": "<string>",
  "fileName": "<string>",
  "presignedUrl": "<string>",
  "mimeType": "application/pdf",
  "ocrResponse": "<any>"
}

Path Parameters

documentId
string
required

The unique identifier of the document.

Response

200
application/json

Successfully retrieved full document details.