POST
/
api
/
v2
/
communication
/
send-fax
import os
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
response = client.v2.communication.send_fax(
    document={
        "id": "id",
        "file_name": "fileName",
    },
    to="to",
)
print(response.async_result_id)
{
  "asyncResultId": "<string>"
}

Body

application/json

Response

202
application/json

Accepted. Fax sending process initiated.