cURL
curl --request POST \ --url https://api.decodahealth.com/user/patient/document/upload \ --header 'API-KEY: <api-key>' \ --header 'Content-Type: multipart/form-data' \ --header 'TENANT: <tenant>' \ --form 'patient_id=<string>' \ --form 'title=<string>' \ --form doc_type=LAB \ --form file='@example-file' \ --form parse_with_ai=false
{ "id": "<string>", "patientId": "<string>", "filePath": "<string>", "fileType": "<string>", "title": "<string>", "summary": "<string>", "docType": "LAB", "signatureUrl": "<string>" }
Upload a document for a patient.
The tenant you are making this request on behalf of
Your api key
LAB
PHARMACY
IMAGE
REPORT
OTHER
CONSENT
NOTE_UPLOAD
Successful Response