Skip to main content
POST
/
api
/
v2
/
documents
/
combine
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
response = client.v2.documents.combine(
    combined_file_name="combinedFileName",
    documents=[{
        "id": "id",
        "file_name": "fileName",
    }],
)
print(response.document)
{
  "document": {
    "id": "<string>",
    "fileName": "<string>"
  }
}

Body

application/json
combinedFileName
string
required

The desired file name for the combined PDF (e.g., 'combined.pdf').

documents
object[]
required

An array of document resources to be combined. All documents must be PDFs.

Response

Successfully combined documents into a single PDF.

document
object
required

Metadata of the newly created combined PDF document.

I