Document Get
Markdown for LLMsReturns one document record — what the API stores about a generated file: its title, format, where it is and how to reach it, and the template, solution, configuration, document request and data source it came from. A record is created when a document request completes. It is metadata, not the file: to fetch the bytes, take the record's urn and call documents-document-download.
Identify the record by its id, as returned by documents-document-list, or as documentId on a completed document request from documents-request-get — not by its urn, which addresses the file and fails here with 500 DOCUMENT_NOT_FOUND, as does an id that matches no record or a deleted one. An id that is not a GUID gets a bodiless 404.
Unlike the list, get returns previewEmbedLink, a link for embedding the file in an iframe, when the record has one.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
Id of the document record to read: the record's id, as returned by documents-document-list, or as documentId on a completed document request from documents-request-get — not its urn, which addresses the file and is what documents-document-download takes. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches no document record, a deleted one or a file's urn included, returns 500 DOCUMENT_NOT_FOUND.
uuidResponse Body
application/json
application/json
application/json
curl -X GET "https://example.com/documents/document/810980b2-319e-4ea3-9878-8b54b1dc5da9/get"{ "result": { "statusCode": 200, "message": "OK", "data": { "document": { "id": "810980b2-319e-4ea3-9878-8b54b1dc5da9", "subscriptionId": "44b20059-2442-44cc-82ed-a0d0070804d2", "ownerId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "lastModifiedUserId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "ownerName": "John Doe", "title": "Quarterly invoice", "urn": "19a9cf71-893a-4ed1-b73d-8ec034d698e3", "path": "root", "fileFormat": "pdf", "deliveryMethod": "Storage", "createdDate": "2026-10-20T09:21:44.000Z", "lastModifiedDate": "2026-10-20T09:21:44.000Z" } } }, "origin": "GET https://api.doctavian.com/v1/documents/document/{documentId}/get", "dateTime": "2026-10-20T09:22:10.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "2b9c4e1f7a3d46e08b5c2d9e1f4a7b30"}{ "error": { "statusCode": 401, "message": "The request could not be authenticated.", "innerErrors": [ { "code": "UNAUTHORIZED", "message": "The request could not be authenticated.", "userMessage": "Your session has expired or is invalid. Please sign in again." } ] }, "origin": "GET https://api.doctavian.com/v1/documents/document/{documentId}/get", "dateTime": "2026-09-25T02:21:07.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "a466bda0c19b9da6d806ee25706a5b19"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "DOCUMENT_NOT_FOUND", "message": "DOCUMENT_NOT_FOUND", "userMessage": "DOCUMENT_NOT_FOUND" } ] }, "origin": "GET https://api.doctavian.com/v1/documents/document/{documentId}/get", "dateTime": "2026-10-20T09:25:12.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "4c1e2a7b9d3f45e08a6b2c4d1e7f9a30"}