Skip to main content
Version: 2.2.0

Get list of document templates

Updated date: 30/04/2023
Updated by: VNPT eContract's team


Purpose

The function retrieves information about a list of document templates that the user has created or document templates shared by other users.

  • Request URL: /api/document-templates
  • HTTP method: GET
  • Authorize: Bearer token
  • Parameter: Not required, but additional options can be added below to filter or search the list of document templates.
KeyTypeDescription
searchstringSearch information by document template name
pageintPage number (default is 1)
pagesizeintPage size (default is 10 records)

Sample request

Query param:
page: 1
pageSize: 20
search: FILE MẪU IMPORT LÔ
Request: /api/document-templates?page=1&pageSize=10&search=FILE MẪU IMPORT LÔ

Sample response body

{
"data": {
"items": [
{
"id": 1149,
"name": "Batch import sample template",
"createdDate": "2022-11-22T14:18:25.3990136",
"fileName": "dochub-template.docx",
"createdByUser": {
"id": 2341,
"createdDate": "2022-09-15T10:15:57.0220583",
"comId": 164,
"code": "phannhan",
"name": "Phan Nhan",
"phone": "0919380999",
"email": "phannhan@email.com",
"validFrom": "2022-09-19T10:52:00",
"validTo": "2025-09-19T10:52:00",
"isValid": true,
"signConfirmationEnabled": true,
"isAccountLocked": false
},
"downloadUrl": "{HOST}/Api/Download?token=...",
"pdfDownloadUrl": "{HOST}/Api/Download?token=...",
"xlsxDownloadUrl": "{HOST}/Api/Download?token=...",
"isShareable": false,
"isDeletelable": false,
"isUpdateable": false
}
],
"totalCount": 1,
"pageCount": 1,
"page": 1,
"pageSize": 10,
"hasNextPage": false,
"hasPreviousPage": false
},
"success": true,
"code": 0,
"messages": []
}