curl --request GET \
--url https://sandbox.circularo.com/api/v2/templates/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.circularo.com/api/v2/templates/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/templates/{id}")
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{
"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"
}{
"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": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Retrieve a template
GET /templates/{id}
Returns a single template by its identifier: its document defaults (name, source file, metadata definition), and for a signing template also the placed fields and the recipient roles with their routing.
Use it to inspect a template before creating a transaction from it with POST /transactions — the roles array tells you which roles to cast recipients into, and the field arrays show what will be placed on the document. The ETag header identifies the template’s current version: compare it with the value you saw when reviewing the template to tell whether the template has changed since.
Response headers
ETag— An opaque validator for the resource’s current version.
curl --request GET \
--url https://sandbox.circularo.com/api/v2/templates/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.circularo.com/api/v2/templates/{id}"
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/{id}', 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/{id}",
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/{id}"
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/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/templates/{id}")
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{
"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"
}{
"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": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Response
Returns the requested template.
A template: reusable document defaults (title, source file, metadata definition), and for a signing template also the placed fields, the recipient roles and their routing.
Whether the template is enforced when used. Creating a transaction from a locked template binds the transaction to it — the binding is recorded on the document and the fields are validated against the template on the server. An unlocked template only provides the blueprint and leaves no binding. The binding is recorded when the document is sent to recipients; a transaction completed by apply alone leaves none.
The kind of the template, determined by its 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.
document, signing "signing"