Documents

Document Template List

GET
/documents/template/list

Returns a paginated, optionally filtered and sorted list of document templates.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Query Parameters

top?integer

Maximum number of records to return (page size).

skip?integer

Number of records to skip (page offset).

orderby?string

Sort clause in the form Column|DIRECTION, e.g. Name|DESC. The column and direction are separated by a pipe (|).

filter?string

URL-encoded JSON array of filter clauses (see FilterDTO). Example (decoded): [{"key":"Filter1","column":"Name","type":"string","condition":"CONTAINS","value":"Invoice"}].

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/documents/template/list"
{  "result": {    "data": {      "documentTemplates": [        {          "documentTemplateGuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",          "subscriptionGuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",          "ownerGuid": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",          "lastModifiedUserGuid": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",          "name": "Standard Invoice",          "description": "Company standard invoice layout.",          "title": "Invoice",          "urn": "9f86d081-884c-4d30-8934-9c1e6cbcb9f5",          "url": "https://storage.example.com/templates/invoice-standard.docx",          "viewAnonymousLink": "",          "editAnonymousLink": "",          "viewUserLink": "",          "editUserLink": "",          "viewOrganizationLink": "",          "editOrganizationLink": "",          "fileFormat": "docx",          "loadMethod": "Storage",          "path": "templates/invoice-standard.docx",          "createdDate": "2026-07-14T09:30:00.000Z",          "lastModifiedDate": "2026-07-14T09:30:00.000Z",          "isDeleted": false        }      ],      "rowCount": 1    },    "statusCode": 200,    "message": "OK"  },  "origin": "GET https://api.doctavian.com/v1/documents/template/list",  "dateTime": "2026-07-14T09:30:00.000Z",  "operationId": "3ce7c29e89e2e62b33654158a06c1015",  "userId": "3e36bb39-fc9c-4254-9ed7-443c4482c0b2"}
{  "userId": "09798602-e9f8-43cd-a10e-5cac4f28aa29",  "error": {    "statusCode": 400,    "message": "Name is required.",    "innerErrors": [      {        "code": "DATA_NAME_REQUIRED",        "message": "Name is required.",        "userMessage": "Name is required."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/template/list",  "dateTime": "2026-01-02T12:34:56.000Z",  "operationId": "98e88c1db06eb6aa1e8eff41fe827c9c"}
{  "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/list",  "dateTime": "2026-01-02T12:34:56.000Z",  "operationId": "e929ff6c651c80c1db9d6d536b0a6b97",  "userId": "748b2a39-7231-4b49-832b-9ef189074a21"}
{  "error": {    "statusCode": 404,    "message": "The requested resource was not found.",    "innerErrors": [      {        "code": "NOT_FOUND_BY_ID",        "message": "The requested resource was not found.",        "userMessage": "We couldn't find that resource. Check the id and try again."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/template/list",  "dateTime": "2026-01-02T12:34:56.000Z",  "operationId": "bcbe1f678a10f4084d600613513798b9",  "userId": "748b2a39-7231-4b49-832b-9ef189074a21"}
{  "userId": "d42dc454-aa23-4221-b288-c500d70585f4",  "error": {    "statusCode": 500,    "message": "An unexpected error occurred.",    "innerErrors": [      {        "code": "GET_DATA_SOURCE_ERROR",        "message": "An unexpected error occurred.",        "userMessage": "An unexpected error occurred."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/template/list",  "dateTime": "2026-01-02T12:34:56.000Z",  "operationId": "0d7a62ad8157c33b9c950469ae94d2de"}