Get Document
Documents
Get Document
Download a document by its Cobalt ID.
GET
Get Document
Returns the raw file bytes for a document. The response is the file itself — the
Content-Type header carries the document’s MIME type and Content-Disposition
carries the original filename.
This endpoint is typically used to retrieve PDFs referenced by document_ids on
a referral. The ID passed in the URL is the same value that appears in the
document_ids array on a referral object.
Path Parameters
- id (string, required): The Cobalt document ID (UUID without dashes) as returned in
document_idson a referral.
Example Request
Response
On success, the response body is the raw file. Relevant headers:- Content-Type: The document’s MIME type (typically
application/pdf). - Content-Disposition:
attachment; filename="<original-filename>". - Content-Length: The file size in bytes.
Status Codes
- 200: Document returned successfully.
- 404: Document not found.
Notes
- Access is scoped to your organization — only documents associated with your linked accounts are returned.
- Documents are stored as they were received from the EMR. PDFs are returned unmodified.