Documents
Document Template Get
Retrieves a single document template by id, returning the same payload documents-template-create returns: the stored record with its server-assigned owner, folder, timestamps and display-only path, plus the document solutions it is attached to when there are any.
AuthorizationBearer <token>
JWT token to authenticate the request.
In: header
X-Api-Key<token>
API key, sent as a request header.
In: header
Path Parameters
documentTemplateId*string
Id of the template to retrieve, as returned by documents-template-create in result.data.documentTemplate.id.
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/documents/template/2b7c9e14-5a63-4f08-9d21-7c4e0b8a3f52/get"{ "result": { "statusCode": 200, "message": "OK", "data": { "documentTemplate": { "id": "2b7c9e14-5a63-4f08-9d21-7c4e0b8a3f52", "subscriptionId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "ownerId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "lastModifiedUserId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "name": "Standard Invoice", "description": "Company standard invoice layout.", "title": "Invoice", "urn": "9f86d081-884c-4d30-8934-9c1e6cbcb9f5", "fileFormat": "docx", "loadMethod": "Storage", "path": "Templates / Standard Invoice.docx", "documentSolutions": [ { "id": "6ccb8ca9-2952-4dbf-a4b0-4a48bdeb1922", "name": "Quarterly Invoicing", "description": "Invoice run for quarterly billing." } ], "ownerName": "Jane Doe", "lastModifiedUserName": "Jane Doe", "createdDate": "2026-09-18T12:15:53.000Z", "lastModifiedDate": "2026-09-18T12:15:53.000Z" } } }, "origin": "GET https://api.doctavian.com/v1/documents/template/{documentTemplateId}/get", "dateTime": "2026-09-18T12:15:53.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "a0f31d9c6b4e4278ad15e9c73f082b64"}{ "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/template/{documentTemplateId}/get", "dateTime": "2026-09-18T12:15:53.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "a0f31d9c6b4e4278ad15e9c73f082b64"}{ "error": { "statusCode": 403, "message": "The caller is not authorized to perform this operation.", "innerErrors": [ { "code": "AUTHORIZATION_ERROR", "message": "The caller is not authorized to perform this operation.", "userMessage": "You do not have permission to do this. Contact your administrator." } ] }, "origin": "GET https://api.doctavian.com/v1/documents/template/{documentTemplateId}/get", "dateTime": "2026-09-18T12:15:53.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "a0f31d9c6b4e4278ad15e9c73f082b64"}Empty
{ "error": { "statusCode": 500, "message": "The template could not be retrieved.", "innerErrors": [ { "code": "GET_DOCUMENT_TEMPLATE_ERROR", "message": "The template could not be retrieved.", "userMessage": "Something went wrong. Please try again or contact support." } ] }, "origin": "GET https://api.doctavian.com/v1/documents/template/{documentTemplateId}/get", "dateTime": "2026-09-18T12:15:53.000Z", "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d", "operationId": "a0f31d9c6b4e4278ad15e9c73f082b64"}