Skip to main content

List

Overview

You can get all smart template list by using this API.

API detail

Request

  • URL: /template
  • Method: GET

Response

Success

  • Status code: 200
  • Body:
{
"data": [
{
"id": 1,
"variable_list": [
{
"id": 1,
"name": "Signer",
"variable_number": 1,
"document_template": 1
}
],
"name": "My contract",
"content": "<p>This is my first smart template.</p>",
"created_at": "2021-10-19T16:05:44.158662Z",
"updated_at": "2021-10-19T16:05:44.158662Z",
"owner": "your.email@legale.io",
"users": [
"user1@legale.io",
"user2@legale.io"
],
},
],
"code": null
}
ValueTypeDescription
contentstrHTML code of template that will be used to build pdf document
usersarrayEmail list of users who can access to the template
variablesarrayList of variables that is assigned to the template