×
Documents GET (by patient)
GET /documents?PatNum=101. PatNum is required. Returns all documents and mounts for the patient (metadata only; no file content). Per OpenDental API Documents.
Example Response:
[
{
"DocNum": 34,
"MountNum": 0,
"filePath": "\\\\server\\OpenDentImages\\S\\SmithJohn15\\exampleimage.jpg",
"Description": "Scanned image",
"PatNum": "101",
"Note": "",
"DateCreated": "2021-04-08 08:12:21",
"docCategory": "Lab Cases",
"DocCategory": 14,
"ToothNumbers": "1,2,3,4,5",
"ProvNum": "0",
"PrintHeading": "false",
"DateTStamp": "2021-04-18 11:45:01",
"serverDateTime": "2021-05-20 13:30:54",
"FileName": "exampleimage.jpg",
"ImgType": "Photo"
},
{
"DocNum": 0,
"MountNum": 15,
"filePath": "",
"Description": " 5/11/2021: 4BW",
"PatNum": "101",
"Note": "Bitewings",
"DateCreated": "2021-05-11 13:26:39",
"docCategory": "Lab Cases",
"DocCategory": 14,
"ToothNumbers": "",
"ProvNum": "0",
"PrintHeading": "",
"DateTStamp": "",
"serverDateTime": ""
}
]
All response fields (with descriptions):
- DocNum — Unique document ID. 0 for mount-only items.
- MountNum — Mount ID when this is a mount (image group). 0 for standalone documents.
- filePath — Full path to file (AtoZ/cloud). Blank for InDatabase storage or mounts.
- Description — Label shown in the image category tree.
- PatNum — Patient number (FK to patient).
- Note — Optional note; may contain internal markers (e.g. _rawBase64_, _download_).
- DateCreated — When the document was created ("yyyy-MM-dd HH:mm:ss").
- docCategory — Category name (e.g. "Lab Cases", "Patient Pictures").
- DocCategory — DefNum of the category (definition.Category=18).
- ToothNumbers — Comma-separated tooth numbers or ranges (e.g. "1-5,8").
- ProvNum — Provider number; 0 if none.
- PrintHeading — "true" or "false"; if true, extra info shown when printing.
- DateTStamp — Last modified timestamp. Empty for mounts.
- serverDateTime — Server time at response.
- FileName — Stored filename (single-doc GET; may appear in list).
- ImgType — One of: Document, Radiograph, Photo, File, Attachment.