Skip to main content
GET
Download a lab report document by its file ID. Returns the raw file bytes with the appropriate Content-Type header. Document IDs are obtained from the documents array in the Get Lab Results response. Requires the results_view scope.
Access is validated against the profile that owns the document.

Request

Path parameters

string
required
File ID (UUID) from the documents array in the appointment results response.

Response

On success, the API returns 200 OK with the file bytes and four headers. Each header carries a field of the documents array: Original-File-Name is percent-encoded UTF-8, because a header cannot carry every character an uploaded name can contain. Decode it with decodeURIComponent or an equivalent. ETag and If-None-Match are the standard HTTP caching headers (RFC 9110). Send the etag you hold in If-None-Match to skip an unchanged file. The API then answers 304 Not Modified with no body.

Error responses