Documents

Template List

Markdown for LLMs
GET
/documents/template/list

Returns one page of the document templates on the caller's subscription, newest first unless orderby says otherwise.

Each entry is the full record, in the same shape documents-template-get returns for a single document template — there is no lighter summary form, so a page of 25 carries 25 complete records.

Page with top and skip, and read pagination inside result.data to find out where you are: totalCount is the number of matches across all pages, while count is only how many came back in this one.

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 — the page size. Optional; the server applies its own default when omitted.

skip?integer

How many records to skip before the page begins — the offset. Optional; defaults to 0. Combine with top to page: the third page of 25 is top=25&skip=50.

orderby?string

Sort clause as Column|DIRECTION with a literal pipe between the two, for example Name|DESC. DIRECTION is ASC or DESC. Optional.

filter?string

Filter clauses as a URL-encoded JSON array, each entry { key, column, type, condition, value }. Optional; omit it to return everything.

Decoded, one clause looks like [{"key":"Filter1","column":"Name","type":"string","condition":"CONTAINS","value":"Invoice"}]. Several clauses narrow the result further.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/documents/template/list?top=25&skip=50&orderby=Name%7CDESC&filter=%255B%257B%2522key%2522%253A%2522Filter1%2522%252C%2522column%2522%253A%2522Name%2522%252C%2522type%2522%253A%2522string%2522%252C%2522condition%2522%253A%2522CONTAINS%2522%252C%2522value%2522%253A%2522Invoice%2522%257D%255D"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "documentTemplates": [        {          "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"        }      ],      "pagination": {        "currentPage": 1,        "count": 1,        "pageSize": 25,        "totalCount": 12,        "hasNext": false,        "hasPrevious": false      }    }  },  "origin": "GET https://api.doctavian.com/v1/documents/template/list",  "dateTime": "2026-09-25T09:41:06.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e5c904a2bd7f48139a60c2e5148b7f3a"}
{  "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-09-25T09:41:06.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e5c904a2bd7f48139a60c2e5148b7f3a"}
{  "error": {    "statusCode": 500,    "message": "The document template list could not be retrieved.",    "innerErrors": [      {        "code": "GET_DOCUMENT_TEMPLATE_LIST_ERROR",        "message": "The document template list could not be retrieved.",        "userMessage": "Something went wrong. Please try again or contact support."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/template/list",  "dateTime": "2026-09-25T09:41:06.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e5c904a2bd7f48139a60c2e5148b7f3a"}