Skip to main content
GET
/
api
/
v2
/
documents
/
{documentId}
Python
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": "<unknown>"
}

Path Parameters

documentId
string
required

The unique identifier of the document.

Response

Successfully retrieved full document details.

Successfully retrieved full document details.

id
string
required
fileName
string
required
presignedUrl
string<uri>
required
mimeType
enum<string>
required
Available options:
application/pdf
ocrResponse
any