curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/templates/search?token=' \
--header 'Content-Type: application/json' \
--data '
{
"aggregations": {},
"templateQuery": {
"from": 0,
"query": {
"filter": [
{}
],
"ignore_unmapped": false,
"minimumShouldMatch": 1,
"must": [
{}
],
"mustNot": [
{}
],
"path": "workflow.history",
"should": [
{}
]
},
"size": 10,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
}
}
'import requests
url = "https://sandbox.circularo.com/api/v1/templates/search?token="
payload = {
"aggregations": {},
"templateQuery": {
"from": 0,
"query": {
"filter": [{}],
"ignore_unmapped": False,
"minimumShouldMatch": 1,
"must": [{}],
"mustNot": [{}],
"path": "workflow.history",
"should": [{}]
},
"size": 10,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
aggregations: {},
templateQuery: {
from: 0,
query: {
filter: [{}],
ignore_unmapped: false,
minimumShouldMatch: 1,
must: [{}],
mustNot: [{}],
path: 'workflow.history',
should: [{}]
},
size: 10,
sort: [{field: 'createDate', nested: {}}]
}
})
};
fetch('https://sandbox.circularo.com/api/v1/templates/search?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/templates/search?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aggregations' => [
],
'templateQuery' => [
'from' => 0,
'query' => [
'filter' => [
[
]
],
'ignore_unmapped' => false,
'minimumShouldMatch' => 1,
'must' => [
[
]
],
'mustNot' => [
[
]
],
'path' => 'workflow.history',
'should' => [
[
]
]
],
'size' => 10,
'sort' => [
[
'field' => 'createDate',
'nested' => [
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/templates/search?token="
payload := strings.NewReader("{\n \"aggregations\": {},\n \"templateQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 10,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/templates/search?token=")
.header("Content-Type", "application/json")
.body("{\n \"aggregations\": {},\n \"templateQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 10,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/templates/search?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"aggregations\": {},\n \"templateQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 10,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"aggregations": {},
"results": [
{
"__addedBy": "<string>",
"__addedOn": "2023-11-07T05:31:56Z",
"__editable": true,
"__groups": [
"<string>"
],
"__id": "acc6bd04-8165-45b5-a3e8-b4cee54c6b90",
"__organization": "<string>",
"__owner": "<string>",
"__shared": false,
"__shareEdit": false,
"__users": [
"<string>"
],
"attachments": [
{
"content": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"merged": true,
"name": "LegalNotes.docx",
"public": false
}
],
"bulkMapping": [
{
"body": {
"mapping": "E-mail address",
"template": "user1_recipient_mail"
}
}
],
"category": "Contracts",
"definitionType": "ext",
"documentCategory": "Contract",
"documentFolder": {
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"isPublic": true
},
"documentNameFormat": {
"customName": "Supplier NDA",
"namePart": "custom",
"suffix": "create_date"
},
"documentType": "d_default",
"documentValues": [
{
"key": "D_DEFAULT_DESCRIPTION",
"value": "\"Annual supply contract\""
}
],
"file": "<string>",
"fileMerge": [
{
"end": 12,
"hash": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"start": 1
}
],
"isLocked": false,
"name": "NDA for new suppliers",
"sequential": true,
"shareSettings": {
"allowedOAuth": "<string>",
"canAnnotateOnReject": true,
"delegate": true,
"expirationEnabled": true,
"expirationTime": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"isPublicComment": true,
"kycFactors": [
"idVerification",
"livenessDetection"
],
"kycProvider": "identomat",
"mailProtection": true,
"message": "<string>",
"metadata": true,
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"oauthFactorTypes": [
"email"
],
"oAuthProtection": true,
"password": "<string>",
"passwordProtection": true,
"print": true,
"rejectWithoutComment": true,
"remindersEnabled": true,
"remindersIntervalDays": 123,
"remindersStartDays": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"smsProtection": true,
"uploadFiles": true,
"usersWithKycData": [
{
"kycDocumentTypes": [
"passport",
"idCard"
],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycExpectedDataFields": [
"dateOfBirth"
],
"user": "john.doe@example.com"
}
],
"usersWithOAuthFactors": [
{
"oauthFactors": [
{
"type": "phoneNumber",
"value": "+420777123456"
}
],
"oauthFactorTypes": [
"email"
],
"user": "john.doe@example.com"
}
]
},
"signatureProvider": "internal",
"signatureType": "signature",
"signEntities": [
{
"inGroup": true,
"order": 123,
"quorum": 123,
"shareData": [
{
"allowedOAuth": "uaePass",
"canAnnotateOnReject": true,
"delegate": true,
"expirationEnabled": true,
"expirationTime": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"kycDocumentTypes": [
"idCard"
],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycExpectedDataFields": [
"dateOfBirth"
],
"kycFactors": [
"idVerification"
],
"kycProvider": "<string>",
"language": "en",
"mailProtection": true,
"message": "Please countersign before Friday.",
"metadata": true,
"nafathId": "1012345678",
"nafathProtection": true,
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"oauthFactorTypes": [
"email"
],
"oAuthProtection": true,
"password": "<string>",
"passwordProtection": true,
"phone": "+420777123456",
"print": true,
"rejectWithoutComment": true,
"remindersEnabled": true,
"remindersIntervalDays": 3,
"remindersStartDays": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"smsProtection": true,
"uploadFiles": true,
"user": {
"contactType": "<string>",
"fullname": "John Doe",
"language": "en",
"mail": "john.doe@example.com",
"name": "john.doe@example.com",
"type": "internal"
}
}
],
"shareType": "sign",
"type": "user",
"usage": "manual",
"userRoleId": 123,
"userRoleName": "Recipient 1"
}
],
"signFields": [
{
"align": "center",
"backgroundColor": "#FFFF00",
"bold": true,
"color": "#000000",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 123,
"groupId": 123,
"id": "1LTn5IimzXh68bOv",
"link": "https://example.com",
"lockRatio": true,
"maxCharacters": 123,
"multipage": true,
"numberOfLines": 123,
"order": 123,
"pages": [
1,
2
],
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
},
"public": true,
"readOnly": true,
"required": true,
"subtype": "annotation_generic",
"text": "<string>",
"time": true,
"timestamp": true,
"tooltip": "Sign here",
"type": "signature",
"usage": "manual",
"user": [
"john.doe+member@example.com"
],
"userRoleId": 123,
"userRoleName": "Recipient 1",
"values": [
"Yes",
"No"
],
"zIndex": 123
}
],
"signTemplate": "<string>",
"tags": {
"private": [
"to review"
],
"public": [
"invoice",
"2026"
]
},
"term": {
"nonFixedTerm": {
"noticePeriod": "3M"
},
"reminders": [
{
"notifyOwner": true,
"period": "30d",
"recipients": [
"jane.doe@example.com"
],
"time": "09:00"
}
],
"renewal": {
"maxRenewals": 2,
"noticePeriod": "3M",
"period": "1y",
"type": "auto"
}
},
"thumbnail": "<string>",
"tsaType": "signatureOnly",
"type": "sign"
}
],
"total": 24
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Search templates
POST /templates/search
Returns a page of templates matching the given query - this is how a template list or a template picker is populated.
Whatever the query asks for, an access restriction is added on top of it, so the results only ever hold templates you own, templates shared with you directly or through one of your groups, and templates stored without an owner. Send an empty body to page through all of those. Aggregations are answered next to the results, which is how a breakdown by type or by owner is obtained without fetching the templates themselves.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/templates/search?token=' \
--header 'Content-Type: application/json' \
--data '
{
"aggregations": {},
"templateQuery": {
"from": 0,
"query": {
"filter": [
{}
],
"ignore_unmapped": false,
"minimumShouldMatch": 1,
"must": [
{}
],
"mustNot": [
{}
],
"path": "workflow.history",
"should": [
{}
]
},
"size": 10,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
}
}
'import requests
url = "https://sandbox.circularo.com/api/v1/templates/search?token="
payload = {
"aggregations": {},
"templateQuery": {
"from": 0,
"query": {
"filter": [{}],
"ignore_unmapped": False,
"minimumShouldMatch": 1,
"must": [{}],
"mustNot": [{}],
"path": "workflow.history",
"should": [{}]
},
"size": 10,
"sort": [
{
"field": "createDate",
"nested": {}
}
]
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
aggregations: {},
templateQuery: {
from: 0,
query: {
filter: [{}],
ignore_unmapped: false,
minimumShouldMatch: 1,
must: [{}],
mustNot: [{}],
path: 'workflow.history',
should: [{}]
},
size: 10,
sort: [{field: 'createDate', nested: {}}]
}
})
};
fetch('https://sandbox.circularo.com/api/v1/templates/search?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/templates/search?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aggregations' => [
],
'templateQuery' => [
'from' => 0,
'query' => [
'filter' => [
[
]
],
'ignore_unmapped' => false,
'minimumShouldMatch' => 1,
'must' => [
[
]
],
'mustNot' => [
[
]
],
'path' => 'workflow.history',
'should' => [
[
]
]
],
'size' => 10,
'sort' => [
[
'field' => 'createDate',
'nested' => [
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/templates/search?token="
payload := strings.NewReader("{\n \"aggregations\": {},\n \"templateQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 10,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/templates/search?token=")
.header("Content-Type", "application/json")
.body("{\n \"aggregations\": {},\n \"templateQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 10,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/templates/search?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"aggregations\": {},\n \"templateQuery\": {\n \"from\": 0,\n \"query\": {\n \"filter\": [\n {}\n ],\n \"ignore_unmapped\": false,\n \"minimumShouldMatch\": 1,\n \"must\": [\n {}\n ],\n \"mustNot\": [\n {}\n ],\n \"path\": \"workflow.history\",\n \"should\": [\n {}\n ]\n },\n \"size\": 10,\n \"sort\": [\n {\n \"field\": \"createDate\",\n \"nested\": {}\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"aggregations": {},
"results": [
{
"__addedBy": "<string>",
"__addedOn": "2023-11-07T05:31:56Z",
"__editable": true,
"__groups": [
"<string>"
],
"__id": "acc6bd04-8165-45b5-a3e8-b4cee54c6b90",
"__organization": "<string>",
"__owner": "<string>",
"__shared": false,
"__shareEdit": false,
"__users": [
"<string>"
],
"attachments": [
{
"content": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"merged": true,
"name": "LegalNotes.docx",
"public": false
}
],
"bulkMapping": [
{
"body": {
"mapping": "E-mail address",
"template": "user1_recipient_mail"
}
}
],
"category": "Contracts",
"definitionType": "ext",
"documentCategory": "Contract",
"documentFolder": {
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"isPublic": true
},
"documentNameFormat": {
"customName": "Supplier NDA",
"namePart": "custom",
"suffix": "create_date"
},
"documentType": "d_default",
"documentValues": [
{
"key": "D_DEFAULT_DESCRIPTION",
"value": "\"Annual supply contract\""
}
],
"file": "<string>",
"fileMerge": [
{
"end": 12,
"hash": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"start": 1
}
],
"isLocked": false,
"name": "NDA for new suppliers",
"sequential": true,
"shareSettings": {
"allowedOAuth": "<string>",
"canAnnotateOnReject": true,
"delegate": true,
"expirationEnabled": true,
"expirationTime": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"isPublicComment": true,
"kycFactors": [
"idVerification",
"livenessDetection"
],
"kycProvider": "identomat",
"mailProtection": true,
"message": "<string>",
"metadata": true,
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"oauthFactorTypes": [
"email"
],
"oAuthProtection": true,
"password": "<string>",
"passwordProtection": true,
"print": true,
"rejectWithoutComment": true,
"remindersEnabled": true,
"remindersIntervalDays": 123,
"remindersStartDays": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"smsProtection": true,
"uploadFiles": true,
"usersWithKycData": [
{
"kycDocumentTypes": [
"passport",
"idCard"
],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycExpectedDataFields": [
"dateOfBirth"
],
"user": "john.doe@example.com"
}
],
"usersWithOAuthFactors": [
{
"oauthFactors": [
{
"type": "phoneNumber",
"value": "+420777123456"
}
],
"oauthFactorTypes": [
"email"
],
"user": "john.doe@example.com"
}
]
},
"signatureProvider": "internal",
"signatureType": "signature",
"signEntities": [
{
"inGroup": true,
"order": 123,
"quorum": 123,
"shareData": [
{
"allowedOAuth": "uaePass",
"canAnnotateOnReject": true,
"delegate": true,
"expirationEnabled": true,
"expirationTime": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"kycDocumentTypes": [
"idCard"
],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycExpectedDataFields": [
"dateOfBirth"
],
"kycFactors": [
"idVerification"
],
"kycProvider": "<string>",
"language": "en",
"mailProtection": true,
"message": "Please countersign before Friday.",
"metadata": true,
"nafathId": "1012345678",
"nafathProtection": true,
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"oauthFactorTypes": [
"email"
],
"oAuthProtection": true,
"password": "<string>",
"passwordProtection": true,
"phone": "+420777123456",
"print": true,
"rejectWithoutComment": true,
"remindersEnabled": true,
"remindersIntervalDays": 3,
"remindersStartDays": {
"exactTime": "2026-03-01T12:00:00.000Z",
"timeSize": {
"size": "day",
"span": 3
},
"type": "time_span_span"
},
"smsProtection": true,
"uploadFiles": true,
"user": {
"contactType": "<string>",
"fullname": "John Doe",
"language": "en",
"mail": "john.doe@example.com",
"name": "john.doe@example.com",
"type": "internal"
}
}
],
"shareType": "sign",
"type": "user",
"usage": "manual",
"userRoleId": 123,
"userRoleName": "Recipient 1"
}
],
"signFields": [
{
"align": "center",
"backgroundColor": "#FFFF00",
"bold": true,
"color": "#000000",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 123,
"groupId": 123,
"id": "1LTn5IimzXh68bOv",
"link": "https://example.com",
"lockRatio": true,
"maxCharacters": 123,
"multipage": true,
"numberOfLines": 123,
"order": 123,
"pages": [
1,
2
],
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
},
"public": true,
"readOnly": true,
"required": true,
"subtype": "annotation_generic",
"text": "<string>",
"time": true,
"timestamp": true,
"tooltip": "Sign here",
"type": "signature",
"usage": "manual",
"user": [
"john.doe+member@example.com"
],
"userRoleId": 123,
"userRoleName": "Recipient 1",
"values": [
"Yes",
"No"
],
"zIndex": 123
}
],
"signTemplate": "<string>",
"tags": {
"private": [
"to review"
],
"public": [
"invoice",
"2026"
]
},
"term": {
"nonFixedTerm": {
"noticePeriod": "3M"
},
"reminders": [
{
"notifyOwner": true,
"period": "30d",
"recipients": [
"jane.doe@example.com"
],
"time": "09:00"
}
],
"renewal": {
"maxRenewals": 2,
"noticePeriod": "3M",
"period": "1y",
"type": "auto"
}
},
"thumbnail": "<string>",
"tsaType": "signatureOnly",
"type": "sign"
}
],
"total": 24
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Elasticsearch aggregations, passed through as sent and answered alongside the results. Two kinds are refused because they would reach past the caller's own view of the data: a global aggregation, which escapes the access filter, and a top_hits or scripted one, which can expose raw stored documents.
Response
Returns the matching templates, the total number of matches and any aggregations asked for.