Skip to main content
POST
/
user
/
patient
/
document
/
upload
Upload Document
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>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

multipart/form-data
patient_id
string
required
title
string
required
doc_type
enum<string>
required
Available options:
LAB,
PHARMACY,
IMAGE,
REPORT,
OTHER,
CONSENT,
NOTE_UPLOAD
file
file
required
parse_with_ai
boolean
default:false

Response

Successful Response

id
string
required
patientId
string
required
filePath
string
required
fileType
string
required
title
string
required
summary
string | null
required
docType
enum<string>
required
Available options:
LAB,
PHARMACY,
IMAGE,
REPORT,
OTHER,
CONSENT,
NOTE_UPLOAD
signatureUrl
string | null
required