List templates
curl --request GET \
--url https://sandbox.circularo.com/api/v2/templates \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.circularo.com/api/v2/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.circularo.com/api/v2/templates', 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/v2/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v2/templates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pagination": {
"limit": 20,
"nextCursor": "9f1c4e2a7b0d83f65a1e94c7d2b8061f3ac59e470b2d8f1a6c3e90b7d45f2a18",
"offset": 0
},
"results": [
{
"annotationFields": [
{
"choiceGroup": "1",
"fileName": "evidence.pdf",
"id": "8b1d4e60",
"isPublic": false,
"maxCharacters": 10,
"options": [
"Full-time",
"Part-time"
],
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"readOnly": false,
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"role": "Client",
"text": "Approved",
"tooltip": "Enter your job title",
"type": "annotation_generic"
}
],
"category": "Contract",
"createdAt": "2024-11-02T09:15:30.000Z",
"createdBy": {
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
},
"id": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"imageFields": [
{
"id": "c7e0a233",
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"role": "Client",
"tooltip": "Attach the site photo here"
}
],
"isLocked": true,
"mainFileId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"metadataDefinition": "d_default",
"name": "Employment agreement",
"roles": [
{
"order": 1,
"purpose": "sign",
"quorum": 1,
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"role": "Client",
"type": "single"
}
],
"sequential": true,
"signatureFields": [
{
"id": "3f2a9c1e",
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"role": "Client",
"tooltip": "Sign here",
"type": "signature"
}
],
"type": "signing",
"webUrl": "https://sandbox.circularo.com/templates?selected=cba71ea5-9a68-431a-a5c2-6d9932792ec7"
}
],
"total": 42
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Templates
List templates
GET /templates
Lists the templates available to your account, newest first — the ones you own and the ones shared with you or your groups.
A template carries reusable document defaults (title, source file, metadata definition); a signing template additionally locks the placed fields and defines the recipient roles. Use the listing to find a template — its roles tell you whom to cast when creating a transaction from it with POST /transactions.
Templates are created and managed in the Circularo web app.
List templates
curl --request GET \
--url https://sandbox.circularo.com/api/v2/templates \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.circularo.com/api/v2/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.circularo.com/api/v2/templates', 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/v2/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v2/templates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"pagination": {
"limit": 20,
"nextCursor": "9f1c4e2a7b0d83f65a1e94c7d2b8061f3ac59e470b2d8f1a6c3e90b7d45f2a18",
"offset": 0
},
"results": [
{
"annotationFields": [
{
"choiceGroup": "1",
"fileName": "evidence.pdf",
"id": "8b1d4e60",
"isPublic": false,
"maxCharacters": 10,
"options": [
"Full-time",
"Part-time"
],
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"readOnly": false,
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"role": "Client",
"text": "Approved",
"tooltip": "Enter your job title",
"type": "annotation_generic"
}
],
"category": "Contract",
"createdAt": "2024-11-02T09:15:30.000Z",
"createdBy": {
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
},
"id": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"imageFields": [
{
"id": "c7e0a233",
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"role": "Client",
"tooltip": "Attach the site photo here"
}
],
"isLocked": true,
"mainFileId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"metadataDefinition": "d_default",
"name": "Employment agreement",
"roles": [
{
"order": 1,
"purpose": "sign",
"quorum": 1,
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"role": "Client",
"type": "single"
}
],
"sequential": true,
"signatureFields": [
{
"id": "3f2a9c1e",
"order": 1,
"pages": [
1
],
"position": {
"height": 0.07,
"width": 0.25,
"x": 0.11764706,
"y": 0.6826886
},
"recipients": [
{
"email": "jane.doe@example.com",
"fullname": "Jane Doe",
"userId": "jane.doe@example.com"
}
],
"required": true,
"role": "Client",
"tooltip": "Sign here",
"type": "signature"
}
],
"type": "signing",
"webUrl": "https://sandbox.circularo.com/templates?selected=cba71ea5-9a68-431a-a5c2-6d9932792ec7"
}
],
"total": 42
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Query Parameters
Return only templates of this kind. The kind is determined by the template's content rather than by how it was labelled when it was created.
document: A document template: a reusable source file, title and metadata definition. It defines no recipient roles or placed fields.signing: A signing template: a complete transaction blueprint. On top of the document defaults it locks the placed fields and defines the recipient roles and their routing.
Available options:
document, signing Example:
"signing"
Response
Returns the matching templates and pagination metadata.
A list of templates.