Skip to main content
POST
Upload a document

Authorizations

X-API-Key
string
header
required

API key obtained from /api/v1/ext-api-keys

Path Parameters

patientId
string
required

Patient ID

Example:

"1743552000000"

Body

multipart/form-data
file
any | null

The file to upload

external_id
string

Optional caller-supplied identifier. Unique per organization; immutable once set.

Required string length: 1 - 255
Example:

"PARTNER-DOC-456"

Response

Document uploaded. The file is stored and, in the normal case, text extraction is queued to run asynchronously — the returned document is then typically pending. If extraction could not be queued, the file is still saved and message reflects that (trigger extraction later via the extract endpoint). Poll the GET endpoint to track extraction status.

data
object
required
message
string
required

Human-readable status. text extraction started when extraction was queued; Document uploaded successfully if the file was stored but extraction could not be queued (retry via the extract endpoint).

Example:

"Document uploaded successfully; text extraction started"