curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/documents?token=' \
--header 'Content-Type: application/json' \
--data '
{
"definitionType": "ext",
"workflow": "wf_archive",
"actionId": 3,
"addMentionRights": true,
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"convertToPDF": false,
"draftId": "8b312068-ecdf-4fa6-8f13-c6183da85f43",
"forcePdfA": false,
"groupReceiver": [
"everyone"
],
"isPublicComment": false,
"optionalData": {
"annotations": [
{
"backgroundColor": "#ffaa55",
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"bold": true,
"color": "#ffaa55",
"comment": "Processed as requested.",
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 52,
"link": "https://example.com",
"maxCharacters": 128,
"pages": [
3
],
"position": {},
"public": true,
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"text": "<string>",
"zIndex": 0
}
],
"barcodeData": [
"<string>"
],
"cloneFiles": true,
"cloneMainFile": true,
"convert": false,
"createLinks": true,
"emailAttachments": {},
"folder": "8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublic": true,
"merge": [
"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"
],
"ocr": true,
"path": "Contracts/2026/Q1",
"signatureProvider": "internal",
"signatures": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"decorationType": "empty",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"signOnBehalfOf": "john.doe+member@example.com",
"timestamp": true
}
],
"signFields": [
{
"pages": [
1,
2
],
"position": {
"percentHeight": 0.07,
"percentWidth": 0.2,
"percentX": 0.15,
"percentY": 0.3
},
"type": "signature",
"align": "left",
"backgroundColor": "#ffaa55",
"bold": true,
"color": "#ffaa55",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 11,
"groupId": 123,
"id": "1LTn5IimzXh68bOv",
"link": "https://example.com",
"lockRatio": true,
"maxCharacters": 128,
"numberOfLines": 99,
"order": 123,
"public": true,
"readOnly": true,
"required": true,
"subtype": "annotation_generic",
"text": "<string>",
"timestamp": true,
"tooltip": "Sign here",
"usage": "manual",
"user": [
"john.doe+member@example.com"
],
"userRoleId": 123,
"userRoleName": "Recipient 1",
"values": [
"Yes",
"No"
],
"zIndex": 123
}
],
"sourceDocumentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"tags": {
"private": [
"to review"
],
"public": [
"invoice",
"2026"
]
},
"timezone": "Europe/Prague"
},
"receiver": [
"john.doe+member@example.com"
],
"usePdfA": false
}
'import requests
url = "https://sandbox.circularo.com/api/v1/documents?token="
payload = {
"definitionType": "ext",
"workflow": "wf_archive",
"actionId": 3,
"addMentionRights": True,
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"convertToPDF": False,
"draftId": "8b312068-ecdf-4fa6-8f13-c6183da85f43",
"forcePdfA": False,
"groupReceiver": ["everyone"],
"isPublicComment": False,
"optionalData": {
"annotations": [
{
"backgroundColor": "#ffaa55",
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"bold": True,
"color": "#ffaa55",
"comment": "Processed as requested.",
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 52,
"link": "https://example.com",
"maxCharacters": 128,
"pages": [3],
"position": {},
"public": True,
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"text": "<string>",
"zIndex": 0
}
],
"barcodeData": ["<string>"],
"cloneFiles": True,
"cloneMainFile": True,
"convert": False,
"createLinks": True,
"emailAttachments": {},
"folder": "8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublic": True,
"merge": ["s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"],
"ocr": True,
"path": "Contracts/2026/Q1",
"signatureProvider": "internal",
"signatures": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"decorationType": "empty",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"signOnBehalfOf": "john.doe+member@example.com",
"timestamp": True
}
],
"signFields": [
{
"pages": [1, 2],
"position": {
"percentHeight": 0.07,
"percentWidth": 0.2,
"percentX": 0.15,
"percentY": 0.3
},
"type": "signature",
"align": "left",
"backgroundColor": "#ffaa55",
"bold": True,
"color": "#ffaa55",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 11,
"groupId": 123,
"id": "1LTn5IimzXh68bOv",
"link": "https://example.com",
"lockRatio": True,
"maxCharacters": 128,
"numberOfLines": 99,
"order": 123,
"public": True,
"readOnly": True,
"required": True,
"subtype": "annotation_generic",
"text": "<string>",
"timestamp": True,
"tooltip": "Sign here",
"usage": "manual",
"user": ["john.doe+member@example.com"],
"userRoleId": 123,
"userRoleName": "Recipient 1",
"values": ["Yes", "No"],
"zIndex": 123
}
],
"sourceDocumentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"tags": {
"private": ["to review"],
"public": ["invoice", "2026"]
},
"timezone": "Europe/Prague"
},
"receiver": ["john.doe+member@example.com"],
"usePdfA": False
}
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({
definitionType: 'ext',
workflow: 'wf_archive',
actionId: 3,
addMentionRights: true,
comment: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
convertToPDF: false,
draftId: '8b312068-ecdf-4fa6-8f13-c6183da85f43',
forcePdfA: false,
groupReceiver: ['everyone'],
isPublicComment: false,
optionalData: {
annotations: [
{
backgroundColor: '#ffaa55',
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
bold: true,
color: '#ffaa55',
comment: 'Processed as requested.',
fileName: 'evidence.pdf',
font: 'default',
fontSize: 52,
link: 'https://example.com',
maxCharacters: 128,
pages: [3],
position: {},
public: true,
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
text: '<string>',
zIndex: 0
}
],
barcodeData: ['<string>'],
cloneFiles: true,
cloneMainFile: true,
convert: false,
createLinks: true,
emailAttachments: {},
folder: '8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce',
images: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
subtype: 'image_barcode',
zIndex: 0
}
],
isPublic: true,
merge: ['s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj'],
ocr: true,
path: 'Contracts/2026/Q1',
signatureProvider: 'internal',
signatures: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
decorationType: 'empty',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
signOnBehalfOf: 'john.doe+member@example.com',
timestamp: true
}
],
signFields: [
{
pages: [1, 2],
position: {percentHeight: 0.07, percentWidth: 0.2, percentX: 0.15, percentY: 0.3},
type: 'signature',
align: 'left',
backgroundColor: '#ffaa55',
bold: true,
color: '#ffaa55',
config: '{"multipageType":"all","multiPageCustom":"1"}',
fieldGroupId: 123,
fileName: 'evidence.pdf',
font: 'default',
fontSize: 11,
groupId: 123,
id: '1LTn5IimzXh68bOv',
link: 'https://example.com',
lockRatio: true,
maxCharacters: 128,
numberOfLines: 99,
order: 123,
public: true,
readOnly: true,
required: true,
subtype: 'annotation_generic',
text: '<string>',
timestamp: true,
tooltip: 'Sign here',
usage: 'manual',
user: ['john.doe+member@example.com'],
userRoleId: 123,
userRoleName: 'Recipient 1',
values: ['Yes', 'No'],
zIndex: 123
}
],
sourceDocumentId: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
tags: {private: ['to review'], public: ['invoice', '2026']},
timezone: 'Europe/Prague'
},
receiver: ['john.doe+member@example.com'],
usePdfA: false
})
};
fetch('https://sandbox.circularo.com/api/v1/documents?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/documents?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([
'definitionType' => 'ext',
'workflow' => 'wf_archive',
'actionId' => 3,
'addMentionRights' => true,
'comment' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'convertToPDF' => false,
'draftId' => '8b312068-ecdf-4fa6-8f13-c6183da85f43',
'forcePdfA' => false,
'groupReceiver' => [
'everyone'
],
'isPublicComment' => false,
'optionalData' => [
'annotations' => [
[
'backgroundColor' => '#ffaa55',
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'bold' => true,
'color' => '#ffaa55',
'comment' => 'Processed as requested.',
'fileName' => 'evidence.pdf',
'font' => 'default',
'fontSize' => 52,
'link' => 'https://example.com',
'maxCharacters' => 128,
'pages' => [
3
],
'position' => [
],
'public' => true,
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'text' => '<string>',
'zIndex' => 0
]
],
'barcodeData' => [
'<string>'
],
'cloneFiles' => true,
'cloneMainFile' => true,
'convert' => false,
'createLinks' => true,
'emailAttachments' => [
],
'folder' => '8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce',
'images' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'subtype' => 'image_barcode',
'zIndex' => 0
]
],
'isPublic' => true,
'merge' => [
's1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj'
],
'ocr' => true,
'path' => 'Contracts/2026/Q1',
'signatureProvider' => 'internal',
'signatures' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'decorationType' => 'empty',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'signOnBehalfOf' => 'john.doe+member@example.com',
'timestamp' => true
]
],
'signFields' => [
[
'pages' => [
1,
2
],
'position' => [
'percentHeight' => 0.07,
'percentWidth' => 0.2,
'percentX' => 0.15,
'percentY' => 0.3
],
'type' => 'signature',
'align' => 'left',
'backgroundColor' => '#ffaa55',
'bold' => true,
'color' => '#ffaa55',
'config' => '{"multipageType":"all","multiPageCustom":"1"}',
'fieldGroupId' => 123,
'fileName' => 'evidence.pdf',
'font' => 'default',
'fontSize' => 11,
'groupId' => 123,
'id' => '1LTn5IimzXh68bOv',
'link' => 'https://example.com',
'lockRatio' => true,
'maxCharacters' => 128,
'numberOfLines' => 99,
'order' => 123,
'public' => true,
'readOnly' => true,
'required' => true,
'subtype' => 'annotation_generic',
'text' => '<string>',
'timestamp' => true,
'tooltip' => 'Sign here',
'usage' => 'manual',
'user' => [
'john.doe+member@example.com'
],
'userRoleId' => 123,
'userRoleName' => 'Recipient 1',
'values' => [
'Yes',
'No'
],
'zIndex' => 123
]
],
'sourceDocumentId' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'tags' => [
'private' => [
'to review'
],
'public' => [
'invoice',
'2026'
]
],
'timezone' => 'Europe/Prague'
],
'receiver' => [
'john.doe+member@example.com'
],
'usePdfA' => false
]),
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/documents?token="
payload := strings.NewReader("{\n \"definitionType\": \"ext\",\n \"workflow\": \"wf_archive\",\n \"actionId\": 3,\n \"addMentionRights\": true,\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"convertToPDF\": false,\n \"draftId\": \"8b312068-ecdf-4fa6-8f13-c6183da85f43\",\n \"forcePdfA\": false,\n \"groupReceiver\": [\n \"everyone\"\n ],\n \"isPublicComment\": false,\n \"optionalData\": {\n \"annotations\": [\n {\n \"backgroundColor\": \"#ffaa55\",\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"comment\": \"Processed as requested.\",\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 52,\n \"link\": \"https://example.com\",\n \"maxCharacters\": 128,\n \"pages\": [\n 3\n ],\n \"position\": {},\n \"public\": true,\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"text\": \"<string>\",\n \"zIndex\": 0\n }\n ],\n \"barcodeData\": [\n \"<string>\"\n ],\n \"cloneFiles\": true,\n \"cloneMainFile\": true,\n \"convert\": false,\n \"createLinks\": true,\n \"emailAttachments\": {},\n \"folder\": \"8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce\",\n \"images\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"subtype\": \"image_barcode\",\n \"zIndex\": 0\n }\n ],\n \"isPublic\": true,\n \"merge\": [\n \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\"\n ],\n \"ocr\": true,\n \"path\": \"Contracts/2026/Q1\",\n \"signatureProvider\": \"internal\",\n \"signatures\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"decorationType\": \"empty\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"signOnBehalfOf\": \"john.doe+member@example.com\",\n \"timestamp\": true\n }\n ],\n \"signFields\": [\n {\n \"pages\": [\n 1,\n 2\n ],\n \"position\": {\n \"percentHeight\": 0.07,\n \"percentWidth\": 0.2,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n },\n \"type\": \"signature\",\n \"align\": \"left\",\n \"backgroundColor\": \"#ffaa55\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"config\": \"{\\\"multipageType\\\":\\\"all\\\",\\\"multiPageCustom\\\":\\\"1\\\"}\",\n \"fieldGroupId\": 123,\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 11,\n \"groupId\": 123,\n \"id\": \"1LTn5IimzXh68bOv\",\n \"link\": \"https://example.com\",\n \"lockRatio\": true,\n \"maxCharacters\": 128,\n \"numberOfLines\": 99,\n \"order\": 123,\n \"public\": true,\n \"readOnly\": true,\n \"required\": true,\n \"subtype\": \"annotation_generic\",\n \"text\": \"<string>\",\n \"timestamp\": true,\n \"tooltip\": \"Sign here\",\n \"usage\": \"manual\",\n \"user\": [\n \"john.doe+member@example.com\"\n ],\n \"userRoleId\": 123,\n \"userRoleName\": \"Recipient 1\",\n \"values\": [\n \"Yes\",\n \"No\"\n ],\n \"zIndex\": 123\n }\n ],\n \"sourceDocumentId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"tags\": {\n \"private\": [\n \"to review\"\n ],\n \"public\": [\n \"invoice\",\n \"2026\"\n ]\n },\n \"timezone\": \"Europe/Prague\"\n },\n \"receiver\": [\n \"john.doe+member@example.com\"\n ],\n \"usePdfA\": false\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/documents?token=")
.header("Content-Type", "application/json")
.body("{\n \"definitionType\": \"ext\",\n \"workflow\": \"wf_archive\",\n \"actionId\": 3,\n \"addMentionRights\": true,\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"convertToPDF\": false,\n \"draftId\": \"8b312068-ecdf-4fa6-8f13-c6183da85f43\",\n \"forcePdfA\": false,\n \"groupReceiver\": [\n \"everyone\"\n ],\n \"isPublicComment\": false,\n \"optionalData\": {\n \"annotations\": [\n {\n \"backgroundColor\": \"#ffaa55\",\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"comment\": \"Processed as requested.\",\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 52,\n \"link\": \"https://example.com\",\n \"maxCharacters\": 128,\n \"pages\": [\n 3\n ],\n \"position\": {},\n \"public\": true,\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"text\": \"<string>\",\n \"zIndex\": 0\n }\n ],\n \"barcodeData\": [\n \"<string>\"\n ],\n \"cloneFiles\": true,\n \"cloneMainFile\": true,\n \"convert\": false,\n \"createLinks\": true,\n \"emailAttachments\": {},\n \"folder\": \"8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce\",\n \"images\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"subtype\": \"image_barcode\",\n \"zIndex\": 0\n }\n ],\n \"isPublic\": true,\n \"merge\": [\n \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\"\n ],\n \"ocr\": true,\n \"path\": \"Contracts/2026/Q1\",\n \"signatureProvider\": \"internal\",\n \"signatures\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"decorationType\": \"empty\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"signOnBehalfOf\": \"john.doe+member@example.com\",\n \"timestamp\": true\n }\n ],\n \"signFields\": [\n {\n \"pages\": [\n 1,\n 2\n ],\n \"position\": {\n \"percentHeight\": 0.07,\n \"percentWidth\": 0.2,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n },\n \"type\": \"signature\",\n \"align\": \"left\",\n \"backgroundColor\": \"#ffaa55\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"config\": \"{\\\"multipageType\\\":\\\"all\\\",\\\"multiPageCustom\\\":\\\"1\\\"}\",\n \"fieldGroupId\": 123,\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 11,\n \"groupId\": 123,\n \"id\": \"1LTn5IimzXh68bOv\",\n \"link\": \"https://example.com\",\n \"lockRatio\": true,\n \"maxCharacters\": 128,\n \"numberOfLines\": 99,\n \"order\": 123,\n \"public\": true,\n \"readOnly\": true,\n \"required\": true,\n \"subtype\": \"annotation_generic\",\n \"text\": \"<string>\",\n \"timestamp\": true,\n \"tooltip\": \"Sign here\",\n \"usage\": \"manual\",\n \"user\": [\n \"john.doe+member@example.com\"\n ],\n \"userRoleId\": 123,\n \"userRoleName\": \"Recipient 1\",\n \"values\": [\n \"Yes\",\n \"No\"\n ],\n \"zIndex\": 123\n }\n ],\n \"sourceDocumentId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"tags\": {\n \"private\": [\n \"to review\"\n ],\n \"public\": [\n \"invoice\",\n \"2026\"\n ]\n },\n \"timezone\": \"Europe/Prague\"\n },\n \"receiver\": [\n \"john.doe+member@example.com\"\n ],\n \"usePdfA\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/documents?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 \"definitionType\": \"ext\",\n \"workflow\": \"wf_archive\",\n \"actionId\": 3,\n \"addMentionRights\": true,\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"convertToPDF\": false,\n \"draftId\": \"8b312068-ecdf-4fa6-8f13-c6183da85f43\",\n \"forcePdfA\": false,\n \"groupReceiver\": [\n \"everyone\"\n ],\n \"isPublicComment\": false,\n \"optionalData\": {\n \"annotations\": [\n {\n \"backgroundColor\": \"#ffaa55\",\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"comment\": \"Processed as requested.\",\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 52,\n \"link\": \"https://example.com\",\n \"maxCharacters\": 128,\n \"pages\": [\n 3\n ],\n \"position\": {},\n \"public\": true,\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"text\": \"<string>\",\n \"zIndex\": 0\n }\n ],\n \"barcodeData\": [\n \"<string>\"\n ],\n \"cloneFiles\": true,\n \"cloneMainFile\": true,\n \"convert\": false,\n \"createLinks\": true,\n \"emailAttachments\": {},\n \"folder\": \"8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce\",\n \"images\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"subtype\": \"image_barcode\",\n \"zIndex\": 0\n }\n ],\n \"isPublic\": true,\n \"merge\": [\n \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\"\n ],\n \"ocr\": true,\n \"path\": \"Contracts/2026/Q1\",\n \"signatureProvider\": \"internal\",\n \"signatures\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"decorationType\": \"empty\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"signOnBehalfOf\": \"john.doe+member@example.com\",\n \"timestamp\": true\n }\n ],\n \"signFields\": [\n {\n \"pages\": [\n 1,\n 2\n ],\n \"position\": {\n \"percentHeight\": 0.07,\n \"percentWidth\": 0.2,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n },\n \"type\": \"signature\",\n \"align\": \"left\",\n \"backgroundColor\": \"#ffaa55\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"config\": \"{\\\"multipageType\\\":\\\"all\\\",\\\"multiPageCustom\\\":\\\"1\\\"}\",\n \"fieldGroupId\": 123,\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 11,\n \"groupId\": 123,\n \"id\": \"1LTn5IimzXh68bOv\",\n \"link\": \"https://example.com\",\n \"lockRatio\": true,\n \"maxCharacters\": 128,\n \"numberOfLines\": 99,\n \"order\": 123,\n \"public\": true,\n \"readOnly\": true,\n \"required\": true,\n \"subtype\": \"annotation_generic\",\n \"text\": \"<string>\",\n \"timestamp\": true,\n \"tooltip\": \"Sign here\",\n \"usage\": \"manual\",\n \"user\": [\n \"john.doe+member@example.com\"\n ],\n \"userRoleId\": 123,\n \"userRoleName\": \"Recipient 1\",\n \"values\": [\n \"Yes\",\n \"No\"\n ],\n \"zIndex\": 123\n }\n ],\n \"sourceDocumentId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"tags\": {\n \"private\": [\n \"to review\"\n ],\n \"public\": [\n \"invoice\",\n \"2026\"\n ]\n },\n \"timezone\": \"Europe/Prague\"\n },\n \"receiver\": [\n \"john.doe+member@example.com\"\n ],\n \"usePdfA\": false\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"_esHighlight": "<string>",
"_version": 6,
"alerts": [
{
"alertTo": "john.doe@example.com",
"fieldName": "D_EMPLOYMENT_START_DATE",
"message": "The contract expires next week.",
"sent": true,
"timeDiff": 259200000,
"triggerOn": "2023-11-07T05:31:56Z"
}
],
"alreadyRead": true,
"attachments": [
{
"additionalInfo": "<string>",
"content": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"fileExtension": "docx",
"fileType": "word",
"hasPassword": true,
"hidden": true,
"merged": true,
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"name": "LegalNotes.docx",
"pages": 8,
"pdfPreview": {
"content": "p7kd2m4s9xq1v8b3n6c0z5w2e7r4t1y9u3i6o8a2s5d7f0g4h1j3k6l9z2x5c8v0b4",
"failureReason": "conversion_error",
"status": "failed_irrecoverable",
"statusDate": "2023-11-07T05:31:56Z"
},
"public": true,
"size": 522481,
"timestamp": "2023-11-07T05:31:56Z",
"unsealedContent": "ug7ib1v3yv6grxcz4ipx8j0f6ekjy6bcgfk8s9uvvvczk0gu9dtvtb46ph39w0f2",
"user": "john.doe@example.com"
}
],
"barcode": "g153bn7qeo63b5kzec7q9cvnxnd03n34d4zkfyjy8m728eqdznf3htxm8mh14d48",
"barcodeContent": "https://app.example.com/verification?id=a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"certificateOfFulfillment": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"commentPermissions": {
"deleteAllowed": true,
"drawingAllowed": true,
"editAllowed": true
},
"commentsOnCompletedAllowed": true,
"content": "<string>",
"counterId": "TEF_2016_aa_001",
"customFields": [
{
"key": "internalReference",
"type": "string",
"value": "ACME-2026-001",
"displayName": "Internal reference"
}
],
"date": "2023-11-07T05:31:56Z",
"definition": "d_default",
"definitionLanguage": "en",
"deletionInfo": {
"deletedBy": "john.doe@example.com",
"deletedDate": "2023-11-07T05:31:56Z",
"isDeleted": true
},
"documentCategory": "Contract",
"documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"documentTitle": "Contract Agreement",
"documentType": "d_default",
"enumSelections": {},
"expiresOn": "2026-12-31T00:00:00.000Z",
"extractionLanguage": "en",
"extractionOcr": "<string>",
"extractionStatus": "<string>",
"extractionText": "<string>",
"folder": {
"global": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
},
"user": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
}
},
"html": "<string>",
"isAnnotated": true,
"isAssignee": true,
"isConvertible": true,
"isEditable": true,
"isFolder": true,
"isReadOnly": true,
"isSignable": true,
"isSigned": true,
"isSignedInternally": true,
"lastModified": "2023-11-07T05:31:56Z",
"lastSeen": [
{
"date": "2023-11-07T05:31:56Z",
"name": "john.doe@example.com"
}
],
"organization": "d0a72e51-728e-4a1d-9a5c-13796122b6f8",
"owner": "john.doe@example.com",
"pdfFile": {
"additionalInfo": "<string>",
"content": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"fileExtension": "pdf",
"fileType": "pdf",
"hasPassword": true,
"merge": [
{
"end": 12,
"hash": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"start": 1
}
],
"mimetype": "application/pdf",
"name": "Contract.pdf",
"pages": 21,
"pdfPreview": {
"content": "p7kd2m4s9xq1v8b3n6c0z5w2e7r4t1y9u3i6o8a2s5d7f0g4h1j3k6l9z2x5c8v0b4",
"failureReason": "conversion_error",
"status": "failed_irrecoverable",
"statusDate": "2023-11-07T05:31:56Z"
},
"size": 724158,
"tempFile": "h6uc1qhpj9nnj3d0i8y5cpfxrpm7bxg2gjpi3xnfbnpr3pn8g6bfb6a3vjt0kcpq",
"unsealedContent": "ug7ib1v3yv6grxcz4ipx8j0f6ekjy6bcgfk8s9uvvvczk0gu9dtvtb46ph39w0f2"
},
"preparationDraft": {
"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
}
],
"signStep": "users",
"tsaType": "signatureOnly"
},
"readBy": [
"<string>"
],
"revision": 123,
"rights": {
"editGroups": [
"<string>"
],
"editUsers": [
"<string>"
],
"private": true,
"readGroups": [
"<string>"
],
"readUsers": [
"<string>"
]
},
"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"
}
]
},
"showBarcode": true,
"signatureChecksums": [
"<string>"
],
"signatureComponents": [
{
"actor": {
"name": "john.doe@example.com",
"type": "internal"
},
"algorithm": "SHA256withRSA",
"align": "center",
"backgroundColor": "#F5F5F5",
"bold": true,
"color": "#1A1A1A",
"comment": "Reviewed with the legal team.",
"component": "signature",
"coverAll": true,
"date": "2023-11-07T05:31:56Z",
"decorateFile": "frame",
"fileHash": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"fingerprintSha256": "A13767DDACA2D1B0ACAEB7CD3145D3D1CE14E208106318968FAF9882C8423F43",
"font": "opensans",
"fontSize": 11,
"imageSignature": true,
"ip": "203.0.113.42",
"isLTV": true,
"isSelfSigned": true,
"issuer": "CN=Example Qualified CA,O=Example Trust Services,C=CZ",
"isVerified": true,
"keyUsage": [
"digitalSignature",
"nonRepudiation"
],
"link": "https://example.com/contracts/2024-114",
"location": "Czechia, Prague, Prague",
"lockRatio": true,
"maxCharacters": 20,
"name": "John Doe",
"pages": [
3
],
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
},
"qcCompliance": true,
"qcSSCD": true,
"qcTypes": [
"esign"
],
"readOnly": true,
"reason": "Signed securely by John Doe john.doe@example.com",
"reconstructed": true,
"sealProvider": "company-qseal",
"serialNumber": "4DC32DD214A19795A2111484900663142F513989",
"signatureProvider": "internal",
"signee": "john.doe@example.com",
"signId": "29326ml64lg2tjf8cz2ka7edcmpb3u2m7os5af3r09fquo6sbegzgsyebannd4yz",
"signOnBehalfOf": "john.doe@example.com",
"signOnBehalfOfFullname": "John Doe",
"stampName": "Head office stamp",
"subject": "CN=John Doe,O=Example Ltd,C=CZ",
"subtype": "annotation_generic",
"text": "Document validity: ",
"trustedBy": [
"EUTL"
],
"tsaEnabled": true,
"tsaProvider": "CN=Example TSA,O=Example Trust Services,C=CZ",
"tsaServer": "<string>",
"userRoleId": 123,
"userRoleName": "Recipient 1",
"validityFrom": "2023-11-07T05:31:56Z",
"validityTo": "2023-11-07T05:31:56Z"
}
],
"signatureProvider": "internal",
"signatureType": "signature",
"signFields": [
{
"align": "center",
"backgroundColor": "#FFFF00",
"bold": true,
"cancelled": true,
"color": "#000000",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"filled": true,
"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,
"shareId": [
"sd0oAvfpB4k0yDf787x4"
],
"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
}
],
"sourceTemplate": {
"id": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"name": "NDA for new suppliers"
},
"star": true,
"submittedFiles": [
{
"additionalInfo": "<string>",
"content": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"fileExtension": "pdf",
"fileType": "pdf",
"hasPassword": true,
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"name": "IDCardFront.pdf",
"pages": 8,
"pdfPreview": {
"content": "p7kd2m4s9xq1v8b3n6c0z5w2e7r4t1y9u3i6o8a2s5d7f0g4h1j3k6l9z2x5c8v0b4",
"failureReason": "conversion_error",
"status": "failed_irrecoverable",
"statusDate": "2023-11-07T05:31:56Z"
},
"public": true,
"size": 522481,
"timestamp": "2023-11-07T05:31:56Z",
"user": "john.doe@example.com"
}
],
"subscriptions": {
"comment": [
"<string>"
],
"update": [
"<string>"
],
"workflowChange": [
"<string>"
],
"workflowFinished": [
"<string>"
]
},
"tags": {
"global": [
"<string>"
],
"user": [
"<string>"
]
},
"templateId": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"term": {
"nonFixedTerm": {
"noticePeriod": "3M",
"terminationStartDate": "2026-10-01T00:00:00.000Z"
},
"reminders": [
{
"nextReminderOn": "2026-11-30T08:00:00.000Z",
"notifyOwner": true,
"period": "30d",
"recipients": [
"jane.doe@example.com"
],
"sentOn": "2026-11-30T08:00:07.412Z",
"state": "scheduled",
"time": "09:00",
"timeZone": "Europe/Prague"
}
],
"renewal": {
"finalDate": "2030-12-31T00:00:00.000Z",
"lastRenewedOn": "2027-01-01T00:15:03.118Z",
"maxRenewals": 50,
"noticeDueOn": "2026-09-30T00:00:00.000Z",
"noticePeriod": "3M",
"period": "1y",
"renewedCount": 1,
"type": "auto"
}
},
"termType": "fixed_term",
"thumbnails": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"tsaType": "signatureOnly",
"type": "ext",
"usePdfA": true,
"user": {
"name": "john.doe@example.com",
"type": "internal"
},
"workflow": {
"actions": [
{
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"archive": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"following": "<string>",
"groupFilter": "<string>",
"id": 5,
"important": false,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "create",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"revertSignatures": true,
"rights": "<string>",
"send": true,
"sentiment": "neutral",
"signAction": true,
"signFields": true,
"stateId": 0,
"transitionAction": "<string>",
"type": "action",
"userFilter": "<string>"
}
],
"alreadySigned": [
{
"action": "sign",
"customActionName": "<string>",
"hasTurn": true,
"hasTurnSince": "2023-11-07T05:31:56Z",
"isMandatory": true,
"order": 123,
"quorum": 123,
"shareId": "sd0oAvfpB4k0yDf787x4",
"user": {
"name": "john.doe@example.com",
"type": "internal"
}
}
],
"archived": true,
"cancelStateId": 123,
"commentOnlyVersions": [
123
],
"currentShareSeen": [
{
"name": "john.doe@example.com",
"type": "internal"
}
],
"group": [
"<string>"
],
"history": [
{
"action": -17,
"comment": "<string>",
"commentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"commentAttachment": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"commentDeleted": true,
"commentLastEditedOn": "2026-09-22T09:15:30.000Z",
"commentResolutionChangedBy": {
"name": "john.doe@example.com",
"type": "internal"
},
"commentResolutionChangedOn": "2026-11-04T10:00:00.000Z",
"commentResolved": true,
"connection": {
"ip": "192.0.2.15",
"location": {
"city": "Pilsen",
"country": "Czech Republic",
"countryCode": "CZ",
"region": "Vysočina"
}
},
"date": "2023-11-07T05:31:56Z",
"fileChanged": true,
"fileName": "contract.pdf",
"groupReceiver": [
"<string>"
],
"hidden": true,
"historyId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92",
"isPublicComment": true,
"mentionedDocuments": [
"<string>"
],
"mentionedUsers": [
"jane.doe@example.com"
],
"mimetype": "application/pdf",
"name": "document_signed",
"newExpiresOn": "2027-12-31T00:00:00.000Z",
"newRevision": 123,
"newTitle": "<string>",
"originalExpiresOn": "2026-12-31T00:00:00.000Z",
"originalFileName": "contract.docx",
"originalMimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"originalOwner": "john.doe@example.com",
"originalPublicAttachment": true,
"originalRevision": 123,
"originalTitle": "<string>",
"owner": "jane.doe@example.com",
"publicAttachment": true,
"reactions": [
{
"type": "like",
"users": [
"<string>"
]
}
],
"renewedCount": 123,
"rights": {
"edit": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"jane.doe@example.com"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"jane.doe@example.com"
]
},
"madePrivate": true,
"madePublic": true,
"read": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"jane.doe@example.com"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"jane.doe@example.com"
]
}
},
"sent": true,
"share": [
{
"active": true,
"customActionName": "<string>",
"delegated": true,
"delegatedChainId": "sd0oAvfpB4k0yDf787x4",
"delegatedFrom": "sd0oAvfpB4k0yDf787x4",
"isMandatory": true,
"order": 1,
"originalShareType": "sign",
"phone": "+420123456789",
"positive": true,
"quorum": 2,
"rights": [
"print",
"metadata"
],
"shareDuration": 86400000,
"shareExpiration": "2023-11-07T05:31:56Z",
"shareId": "sd0oAvfpB4k0yDf787x4",
"shareMode": "sms_protected",
"shareReminded": true,
"shareSeen": true,
"shareStateName": "inprogress",
"shareTo": {
"name": "john.doe@example.com",
"type": "internal"
},
"shareType": "sign",
"signId": "<string>",
"updates": [
{
"hasChanged": true,
"name": "validUntil",
"newValue": "<string>",
"oldValue": "<string>"
}
],
"verifiedWith": {
"factor": "sms",
"fullname": "<string>",
"fullnameAr": "<string>",
"kycFactors": [
"idVerification"
],
"oauthFactors": [
{
"type": "email",
"value": "<string>"
}
],
"value": "<string>"
}
}
],
"shareActionsCompleted": true,
"shareActive": true,
"shareDuration": 86400000,
"shareFinal": true,
"shareGroup": [
"<string>"
],
"shareOwner": "john.doe@example.com",
"shareSequential": true,
"signatureComponents": [
"signature",
"timestamp"
],
"signId": "<string>",
"state": 123,
"tags": [
"<string>"
],
"threadParentId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92",
"titleChanged": true,
"type": "document_signed",
"user": {
"name": "john.doe@example.com",
"type": "internal"
},
"userReceiver": [
{
"name": "john.doe@example.com",
"type": "internal"
}
],
"version": 123
}
],
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc590",
"lastAction": {
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"archive": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"following": "<string>",
"groupFilter": "<string>",
"id": 5,
"important": true,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "create",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"revertSignatures": true,
"rights": "<string>",
"send": true,
"sentiment": "neutral",
"signAction": true,
"signFields": true,
"stateId": 0,
"userFilter": "<string>"
},
"lastRequest": {
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"groupFilter": "<string>",
"id": 5,
"important": true,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "request_approval",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"resolvedBy": 5,
"revertSignatures": true,
"rework": true,
"rights": "<string>",
"sentiment": "neutral",
"sign": true,
"signAction": true,
"signFields": true,
"stateId": 0,
"userFilter": "<string>"
},
"receivedDate": "2023-11-07T05:31:56Z",
"scheduledTransition": {
"actionId": 5,
"fieldReference": "D_EMPLOYMENT_START_DATE",
"on": "2023-11-07T05:31:56Z"
},
"shareStateName": "inprogress",
"state": 1,
"stateName": "created",
"timeOfDuration": 86400000,
"user": [
{
"name": "john.doe@example.com",
"type": "internal"
}
],
"waitingFor": [
{
"action": "sign",
"customActionName": "<string>",
"hasTurn": true,
"hasTurnSince": "2023-11-07T05:31:56Z",
"isMandatory": true,
"order": 123,
"quorum": 123,
"shareId": "sd0oAvfpB4k0yDf787x4",
"user": {
"name": "john.doe@example.com",
"type": "internal"
}
}
],
"workflowType": "wf_archive"
}
}
],
"users": {}
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"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": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Create a document
POST /documents
Creates one document against a metadata definition and starts a workflow on it, then returns it in the same representation as a single-document read, users map included.
Files are uploaded beforehand and referenced here by their hash - this request carries no bytes. What body has to contain follows from the definition: a document whose content is an uploaded file names that file in body.pdfFile (which need not be a PDF), a document generated from a template carries its markup in body.html, and in both cases the definition’s own fields travel alongside as further keys of body. Everything beyond the document itself - folder placement, sign fields, tags, merging several uploads into one main file, conversion to PDF - is set through optionalData.
The workflow’s opening action can be carried out in the same call by naming it in actionId and giving it recipients, so creating a document and sending it out is one request rather than two.
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/documents?token=' \
--header 'Content-Type: application/json' \
--data '
{
"definitionType": "ext",
"workflow": "wf_archive",
"actionId": 3,
"addMentionRights": true,
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"convertToPDF": false,
"draftId": "8b312068-ecdf-4fa6-8f13-c6183da85f43",
"forcePdfA": false,
"groupReceiver": [
"everyone"
],
"isPublicComment": false,
"optionalData": {
"annotations": [
{
"backgroundColor": "#ffaa55",
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"bold": true,
"color": "#ffaa55",
"comment": "Processed as requested.",
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 52,
"link": "https://example.com",
"maxCharacters": 128,
"pages": [
3
],
"position": {},
"public": true,
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"text": "<string>",
"zIndex": 0
}
],
"barcodeData": [
"<string>"
],
"cloneFiles": true,
"cloneMainFile": true,
"convert": false,
"createLinks": true,
"emailAttachments": {},
"folder": "8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublic": true,
"merge": [
"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"
],
"ocr": true,
"path": "Contracts/2026/Q1",
"signatureProvider": "internal",
"signatures": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"decorationType": "empty",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"signOnBehalfOf": "john.doe+member@example.com",
"timestamp": true
}
],
"signFields": [
{
"pages": [
1,
2
],
"position": {
"percentHeight": 0.07,
"percentWidth": 0.2,
"percentX": 0.15,
"percentY": 0.3
},
"type": "signature",
"align": "left",
"backgroundColor": "#ffaa55",
"bold": true,
"color": "#ffaa55",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 11,
"groupId": 123,
"id": "1LTn5IimzXh68bOv",
"link": "https://example.com",
"lockRatio": true,
"maxCharacters": 128,
"numberOfLines": 99,
"order": 123,
"public": true,
"readOnly": true,
"required": true,
"subtype": "annotation_generic",
"text": "<string>",
"timestamp": true,
"tooltip": "Sign here",
"usage": "manual",
"user": [
"john.doe+member@example.com"
],
"userRoleId": 123,
"userRoleName": "Recipient 1",
"values": [
"Yes",
"No"
],
"zIndex": 123
}
],
"sourceDocumentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"tags": {
"private": [
"to review"
],
"public": [
"invoice",
"2026"
]
},
"timezone": "Europe/Prague"
},
"receiver": [
"john.doe+member@example.com"
],
"usePdfA": false
}
'import requests
url = "https://sandbox.circularo.com/api/v1/documents?token="
payload = {
"definitionType": "ext",
"workflow": "wf_archive",
"actionId": 3,
"addMentionRights": True,
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"convertToPDF": False,
"draftId": "8b312068-ecdf-4fa6-8f13-c6183da85f43",
"forcePdfA": False,
"groupReceiver": ["everyone"],
"isPublicComment": False,
"optionalData": {
"annotations": [
{
"backgroundColor": "#ffaa55",
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"bold": True,
"color": "#ffaa55",
"comment": "Processed as requested.",
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 52,
"link": "https://example.com",
"maxCharacters": 128,
"pages": [3],
"position": {},
"public": True,
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"text": "<string>",
"zIndex": 0
}
],
"barcodeData": ["<string>"],
"cloneFiles": True,
"cloneMainFile": True,
"convert": False,
"createLinks": True,
"emailAttachments": {},
"folder": "8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublic": True,
"merge": ["s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"],
"ocr": True,
"path": "Contracts/2026/Q1",
"signatureProvider": "internal",
"signatures": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"decorationType": "empty",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"signOnBehalfOf": "john.doe+member@example.com",
"timestamp": True
}
],
"signFields": [
{
"pages": [1, 2],
"position": {
"percentHeight": 0.07,
"percentWidth": 0.2,
"percentX": 0.15,
"percentY": 0.3
},
"type": "signature",
"align": "left",
"backgroundColor": "#ffaa55",
"bold": True,
"color": "#ffaa55",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"font": "default",
"fontSize": 11,
"groupId": 123,
"id": "1LTn5IimzXh68bOv",
"link": "https://example.com",
"lockRatio": True,
"maxCharacters": 128,
"numberOfLines": 99,
"order": 123,
"public": True,
"readOnly": True,
"required": True,
"subtype": "annotation_generic",
"text": "<string>",
"timestamp": True,
"tooltip": "Sign here",
"usage": "manual",
"user": ["john.doe+member@example.com"],
"userRoleId": 123,
"userRoleName": "Recipient 1",
"values": ["Yes", "No"],
"zIndex": 123
}
],
"sourceDocumentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"tags": {
"private": ["to review"],
"public": ["invoice", "2026"]
},
"timezone": "Europe/Prague"
},
"receiver": ["john.doe+member@example.com"],
"usePdfA": False
}
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({
definitionType: 'ext',
workflow: 'wf_archive',
actionId: 3,
addMentionRights: true,
comment: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
convertToPDF: false,
draftId: '8b312068-ecdf-4fa6-8f13-c6183da85f43',
forcePdfA: false,
groupReceiver: ['everyone'],
isPublicComment: false,
optionalData: {
annotations: [
{
backgroundColor: '#ffaa55',
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
bold: true,
color: '#ffaa55',
comment: 'Processed as requested.',
fileName: 'evidence.pdf',
font: 'default',
fontSize: 52,
link: 'https://example.com',
maxCharacters: 128,
pages: [3],
position: {},
public: true,
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
text: '<string>',
zIndex: 0
}
],
barcodeData: ['<string>'],
cloneFiles: true,
cloneMainFile: true,
convert: false,
createLinks: true,
emailAttachments: {},
folder: '8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce',
images: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
subtype: 'image_barcode',
zIndex: 0
}
],
isPublic: true,
merge: ['s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj'],
ocr: true,
path: 'Contracts/2026/Q1',
signatureProvider: 'internal',
signatures: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
decorationType: 'empty',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
signOnBehalfOf: 'john.doe+member@example.com',
timestamp: true
}
],
signFields: [
{
pages: [1, 2],
position: {percentHeight: 0.07, percentWidth: 0.2, percentX: 0.15, percentY: 0.3},
type: 'signature',
align: 'left',
backgroundColor: '#ffaa55',
bold: true,
color: '#ffaa55',
config: '{"multipageType":"all","multiPageCustom":"1"}',
fieldGroupId: 123,
fileName: 'evidence.pdf',
font: 'default',
fontSize: 11,
groupId: 123,
id: '1LTn5IimzXh68bOv',
link: 'https://example.com',
lockRatio: true,
maxCharacters: 128,
numberOfLines: 99,
order: 123,
public: true,
readOnly: true,
required: true,
subtype: 'annotation_generic',
text: '<string>',
timestamp: true,
tooltip: 'Sign here',
usage: 'manual',
user: ['john.doe+member@example.com'],
userRoleId: 123,
userRoleName: 'Recipient 1',
values: ['Yes', 'No'],
zIndex: 123
}
],
sourceDocumentId: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
tags: {private: ['to review'], public: ['invoice', '2026']},
timezone: 'Europe/Prague'
},
receiver: ['john.doe+member@example.com'],
usePdfA: false
})
};
fetch('https://sandbox.circularo.com/api/v1/documents?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/documents?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([
'definitionType' => 'ext',
'workflow' => 'wf_archive',
'actionId' => 3,
'addMentionRights' => true,
'comment' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'convertToPDF' => false,
'draftId' => '8b312068-ecdf-4fa6-8f13-c6183da85f43',
'forcePdfA' => false,
'groupReceiver' => [
'everyone'
],
'isPublicComment' => false,
'optionalData' => [
'annotations' => [
[
'backgroundColor' => '#ffaa55',
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'bold' => true,
'color' => '#ffaa55',
'comment' => 'Processed as requested.',
'fileName' => 'evidence.pdf',
'font' => 'default',
'fontSize' => 52,
'link' => 'https://example.com',
'maxCharacters' => 128,
'pages' => [
3
],
'position' => [
],
'public' => true,
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'text' => '<string>',
'zIndex' => 0
]
],
'barcodeData' => [
'<string>'
],
'cloneFiles' => true,
'cloneMainFile' => true,
'convert' => false,
'createLinks' => true,
'emailAttachments' => [
],
'folder' => '8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce',
'images' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'subtype' => 'image_barcode',
'zIndex' => 0
]
],
'isPublic' => true,
'merge' => [
's1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj'
],
'ocr' => true,
'path' => 'Contracts/2026/Q1',
'signatureProvider' => 'internal',
'signatures' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'decorationType' => 'empty',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'signOnBehalfOf' => 'john.doe+member@example.com',
'timestamp' => true
]
],
'signFields' => [
[
'pages' => [
1,
2
],
'position' => [
'percentHeight' => 0.07,
'percentWidth' => 0.2,
'percentX' => 0.15,
'percentY' => 0.3
],
'type' => 'signature',
'align' => 'left',
'backgroundColor' => '#ffaa55',
'bold' => true,
'color' => '#ffaa55',
'config' => '{"multipageType":"all","multiPageCustom":"1"}',
'fieldGroupId' => 123,
'fileName' => 'evidence.pdf',
'font' => 'default',
'fontSize' => 11,
'groupId' => 123,
'id' => '1LTn5IimzXh68bOv',
'link' => 'https://example.com',
'lockRatio' => true,
'maxCharacters' => 128,
'numberOfLines' => 99,
'order' => 123,
'public' => true,
'readOnly' => true,
'required' => true,
'subtype' => 'annotation_generic',
'text' => '<string>',
'timestamp' => true,
'tooltip' => 'Sign here',
'usage' => 'manual',
'user' => [
'john.doe+member@example.com'
],
'userRoleId' => 123,
'userRoleName' => 'Recipient 1',
'values' => [
'Yes',
'No'
],
'zIndex' => 123
]
],
'sourceDocumentId' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'tags' => [
'private' => [
'to review'
],
'public' => [
'invoice',
'2026'
]
],
'timezone' => 'Europe/Prague'
],
'receiver' => [
'john.doe+member@example.com'
],
'usePdfA' => false
]),
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/documents?token="
payload := strings.NewReader("{\n \"definitionType\": \"ext\",\n \"workflow\": \"wf_archive\",\n \"actionId\": 3,\n \"addMentionRights\": true,\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"convertToPDF\": false,\n \"draftId\": \"8b312068-ecdf-4fa6-8f13-c6183da85f43\",\n \"forcePdfA\": false,\n \"groupReceiver\": [\n \"everyone\"\n ],\n \"isPublicComment\": false,\n \"optionalData\": {\n \"annotations\": [\n {\n \"backgroundColor\": \"#ffaa55\",\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"comment\": \"Processed as requested.\",\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 52,\n \"link\": \"https://example.com\",\n \"maxCharacters\": 128,\n \"pages\": [\n 3\n ],\n \"position\": {},\n \"public\": true,\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"text\": \"<string>\",\n \"zIndex\": 0\n }\n ],\n \"barcodeData\": [\n \"<string>\"\n ],\n \"cloneFiles\": true,\n \"cloneMainFile\": true,\n \"convert\": false,\n \"createLinks\": true,\n \"emailAttachments\": {},\n \"folder\": \"8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce\",\n \"images\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"subtype\": \"image_barcode\",\n \"zIndex\": 0\n }\n ],\n \"isPublic\": true,\n \"merge\": [\n \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\"\n ],\n \"ocr\": true,\n \"path\": \"Contracts/2026/Q1\",\n \"signatureProvider\": \"internal\",\n \"signatures\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"decorationType\": \"empty\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"signOnBehalfOf\": \"john.doe+member@example.com\",\n \"timestamp\": true\n }\n ],\n \"signFields\": [\n {\n \"pages\": [\n 1,\n 2\n ],\n \"position\": {\n \"percentHeight\": 0.07,\n \"percentWidth\": 0.2,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n },\n \"type\": \"signature\",\n \"align\": \"left\",\n \"backgroundColor\": \"#ffaa55\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"config\": \"{\\\"multipageType\\\":\\\"all\\\",\\\"multiPageCustom\\\":\\\"1\\\"}\",\n \"fieldGroupId\": 123,\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 11,\n \"groupId\": 123,\n \"id\": \"1LTn5IimzXh68bOv\",\n \"link\": \"https://example.com\",\n \"lockRatio\": true,\n \"maxCharacters\": 128,\n \"numberOfLines\": 99,\n \"order\": 123,\n \"public\": true,\n \"readOnly\": true,\n \"required\": true,\n \"subtype\": \"annotation_generic\",\n \"text\": \"<string>\",\n \"timestamp\": true,\n \"tooltip\": \"Sign here\",\n \"usage\": \"manual\",\n \"user\": [\n \"john.doe+member@example.com\"\n ],\n \"userRoleId\": 123,\n \"userRoleName\": \"Recipient 1\",\n \"values\": [\n \"Yes\",\n \"No\"\n ],\n \"zIndex\": 123\n }\n ],\n \"sourceDocumentId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"tags\": {\n \"private\": [\n \"to review\"\n ],\n \"public\": [\n \"invoice\",\n \"2026\"\n ]\n },\n \"timezone\": \"Europe/Prague\"\n },\n \"receiver\": [\n \"john.doe+member@example.com\"\n ],\n \"usePdfA\": false\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/documents?token=")
.header("Content-Type", "application/json")
.body("{\n \"definitionType\": \"ext\",\n \"workflow\": \"wf_archive\",\n \"actionId\": 3,\n \"addMentionRights\": true,\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"convertToPDF\": false,\n \"draftId\": \"8b312068-ecdf-4fa6-8f13-c6183da85f43\",\n \"forcePdfA\": false,\n \"groupReceiver\": [\n \"everyone\"\n ],\n \"isPublicComment\": false,\n \"optionalData\": {\n \"annotations\": [\n {\n \"backgroundColor\": \"#ffaa55\",\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"comment\": \"Processed as requested.\",\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 52,\n \"link\": \"https://example.com\",\n \"maxCharacters\": 128,\n \"pages\": [\n 3\n ],\n \"position\": {},\n \"public\": true,\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"text\": \"<string>\",\n \"zIndex\": 0\n }\n ],\n \"barcodeData\": [\n \"<string>\"\n ],\n \"cloneFiles\": true,\n \"cloneMainFile\": true,\n \"convert\": false,\n \"createLinks\": true,\n \"emailAttachments\": {},\n \"folder\": \"8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce\",\n \"images\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"subtype\": \"image_barcode\",\n \"zIndex\": 0\n }\n ],\n \"isPublic\": true,\n \"merge\": [\n \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\"\n ],\n \"ocr\": true,\n \"path\": \"Contracts/2026/Q1\",\n \"signatureProvider\": \"internal\",\n \"signatures\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"decorationType\": \"empty\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"signOnBehalfOf\": \"john.doe+member@example.com\",\n \"timestamp\": true\n }\n ],\n \"signFields\": [\n {\n \"pages\": [\n 1,\n 2\n ],\n \"position\": {\n \"percentHeight\": 0.07,\n \"percentWidth\": 0.2,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n },\n \"type\": \"signature\",\n \"align\": \"left\",\n \"backgroundColor\": \"#ffaa55\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"config\": \"{\\\"multipageType\\\":\\\"all\\\",\\\"multiPageCustom\\\":\\\"1\\\"}\",\n \"fieldGroupId\": 123,\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 11,\n \"groupId\": 123,\n \"id\": \"1LTn5IimzXh68bOv\",\n \"link\": \"https://example.com\",\n \"lockRatio\": true,\n \"maxCharacters\": 128,\n \"numberOfLines\": 99,\n \"order\": 123,\n \"public\": true,\n \"readOnly\": true,\n \"required\": true,\n \"subtype\": \"annotation_generic\",\n \"text\": \"<string>\",\n \"timestamp\": true,\n \"tooltip\": \"Sign here\",\n \"usage\": \"manual\",\n \"user\": [\n \"john.doe+member@example.com\"\n ],\n \"userRoleId\": 123,\n \"userRoleName\": \"Recipient 1\",\n \"values\": [\n \"Yes\",\n \"No\"\n ],\n \"zIndex\": 123\n }\n ],\n \"sourceDocumentId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"tags\": {\n \"private\": [\n \"to review\"\n ],\n \"public\": [\n \"invoice\",\n \"2026\"\n ]\n },\n \"timezone\": \"Europe/Prague\"\n },\n \"receiver\": [\n \"john.doe+member@example.com\"\n ],\n \"usePdfA\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/documents?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 \"definitionType\": \"ext\",\n \"workflow\": \"wf_archive\",\n \"actionId\": 3,\n \"addMentionRights\": true,\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"convertToPDF\": false,\n \"draftId\": \"8b312068-ecdf-4fa6-8f13-c6183da85f43\",\n \"forcePdfA\": false,\n \"groupReceiver\": [\n \"everyone\"\n ],\n \"isPublicComment\": false,\n \"optionalData\": {\n \"annotations\": [\n {\n \"backgroundColor\": \"#ffaa55\",\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"comment\": \"Processed as requested.\",\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 52,\n \"link\": \"https://example.com\",\n \"maxCharacters\": 128,\n \"pages\": [\n 3\n ],\n \"position\": {},\n \"public\": true,\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"text\": \"<string>\",\n \"zIndex\": 0\n }\n ],\n \"barcodeData\": [\n \"<string>\"\n ],\n \"cloneFiles\": true,\n \"cloneMainFile\": true,\n \"convert\": false,\n \"createLinks\": true,\n \"emailAttachments\": {},\n \"folder\": \"8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce\",\n \"images\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"subtype\": \"image_barcode\",\n \"zIndex\": 0\n }\n ],\n \"isPublic\": true,\n \"merge\": [\n \"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj\"\n ],\n \"ocr\": true,\n \"path\": \"Contracts/2026/Q1\",\n \"signatureProvider\": \"internal\",\n \"signatures\": [\n {\n \"blob\": \"da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f\",\n \"comment\": \"Processed as requested.\",\n \"decorationType\": \"empty\",\n \"pages\": [\n 2\n ],\n \"signee\": \"<string>\",\n \"signFieldId\": \"1LTn5IimzXh68bOv\",\n \"signOnBehalfOf\": \"john.doe+member@example.com\",\n \"timestamp\": true\n }\n ],\n \"signFields\": [\n {\n \"pages\": [\n 1,\n 2\n ],\n \"position\": {\n \"percentHeight\": 0.07,\n \"percentWidth\": 0.2,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n },\n \"type\": \"signature\",\n \"align\": \"left\",\n \"backgroundColor\": \"#ffaa55\",\n \"bold\": true,\n \"color\": \"#ffaa55\",\n \"config\": \"{\\\"multipageType\\\":\\\"all\\\",\\\"multiPageCustom\\\":\\\"1\\\"}\",\n \"fieldGroupId\": 123,\n \"fileName\": \"evidence.pdf\",\n \"font\": \"default\",\n \"fontSize\": 11,\n \"groupId\": 123,\n \"id\": \"1LTn5IimzXh68bOv\",\n \"link\": \"https://example.com\",\n \"lockRatio\": true,\n \"maxCharacters\": 128,\n \"numberOfLines\": 99,\n \"order\": 123,\n \"public\": true,\n \"readOnly\": true,\n \"required\": true,\n \"subtype\": \"annotation_generic\",\n \"text\": \"<string>\",\n \"timestamp\": true,\n \"tooltip\": \"Sign here\",\n \"usage\": \"manual\",\n \"user\": [\n \"john.doe+member@example.com\"\n ],\n \"userRoleId\": 123,\n \"userRoleName\": \"Recipient 1\",\n \"values\": [\n \"Yes\",\n \"No\"\n ],\n \"zIndex\": 123\n }\n ],\n \"sourceDocumentId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"tags\": {\n \"private\": [\n \"to review\"\n ],\n \"public\": [\n \"invoice\",\n \"2026\"\n ]\n },\n \"timezone\": \"Europe/Prague\"\n },\n \"receiver\": [\n \"john.doe+member@example.com\"\n ],\n \"usePdfA\": false\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"_esHighlight": "<string>",
"_version": 6,
"alerts": [
{
"alertTo": "john.doe@example.com",
"fieldName": "D_EMPLOYMENT_START_DATE",
"message": "The contract expires next week.",
"sent": true,
"timeDiff": 259200000,
"triggerOn": "2023-11-07T05:31:56Z"
}
],
"alreadyRead": true,
"attachments": [
{
"additionalInfo": "<string>",
"content": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"fileExtension": "docx",
"fileType": "word",
"hasPassword": true,
"hidden": true,
"merged": true,
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"name": "LegalNotes.docx",
"pages": 8,
"pdfPreview": {
"content": "p7kd2m4s9xq1v8b3n6c0z5w2e7r4t1y9u3i6o8a2s5d7f0g4h1j3k6l9z2x5c8v0b4",
"failureReason": "conversion_error",
"status": "failed_irrecoverable",
"statusDate": "2023-11-07T05:31:56Z"
},
"public": true,
"size": 522481,
"timestamp": "2023-11-07T05:31:56Z",
"unsealedContent": "ug7ib1v3yv6grxcz4ipx8j0f6ekjy6bcgfk8s9uvvvczk0gu9dtvtb46ph39w0f2",
"user": "john.doe@example.com"
}
],
"barcode": "g153bn7qeo63b5kzec7q9cvnxnd03n34d4zkfyjy8m728eqdznf3htxm8mh14d48",
"barcodeContent": "https://app.example.com/verification?id=a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"certificateOfFulfillment": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"commentPermissions": {
"deleteAllowed": true,
"drawingAllowed": true,
"editAllowed": true
},
"commentsOnCompletedAllowed": true,
"content": "<string>",
"counterId": "TEF_2016_aa_001",
"customFields": [
{
"key": "internalReference",
"type": "string",
"value": "ACME-2026-001",
"displayName": "Internal reference"
}
],
"date": "2023-11-07T05:31:56Z",
"definition": "d_default",
"definitionLanguage": "en",
"deletionInfo": {
"deletedBy": "john.doe@example.com",
"deletedDate": "2023-11-07T05:31:56Z",
"isDeleted": true
},
"documentCategory": "Contract",
"documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"documentTitle": "Contract Agreement",
"documentType": "d_default",
"enumSelections": {},
"expiresOn": "2026-12-31T00:00:00.000Z",
"extractionLanguage": "en",
"extractionOcr": "<string>",
"extractionStatus": "<string>",
"extractionText": "<string>",
"folder": {
"global": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
},
"user": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
}
},
"html": "<string>",
"isAnnotated": true,
"isAssignee": true,
"isConvertible": true,
"isEditable": true,
"isFolder": true,
"isReadOnly": true,
"isSignable": true,
"isSigned": true,
"isSignedInternally": true,
"lastModified": "2023-11-07T05:31:56Z",
"lastSeen": [
{
"date": "2023-11-07T05:31:56Z",
"name": "john.doe@example.com"
}
],
"organization": "d0a72e51-728e-4a1d-9a5c-13796122b6f8",
"owner": "john.doe@example.com",
"pdfFile": {
"additionalInfo": "<string>",
"content": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"fileExtension": "pdf",
"fileType": "pdf",
"hasPassword": true,
"merge": [
{
"end": 12,
"hash": "a219a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhntv0",
"start": 1
}
],
"mimetype": "application/pdf",
"name": "Contract.pdf",
"pages": 21,
"pdfPreview": {
"content": "p7kd2m4s9xq1v8b3n6c0z5w2e7r4t1y9u3i6o8a2s5d7f0g4h1j3k6l9z2x5c8v0b4",
"failureReason": "conversion_error",
"status": "failed_irrecoverable",
"statusDate": "2023-11-07T05:31:56Z"
},
"size": 724158,
"tempFile": "h6uc1qhpj9nnj3d0i8y5cpfxrpm7bxg2gjpi3xnfbnpr3pn8g6bfb6a3vjt0kcpq",
"unsealedContent": "ug7ib1v3yv6grxcz4ipx8j0f6ekjy6bcgfk8s9uvvvczk0gu9dtvtb46ph39w0f2"
},
"preparationDraft": {
"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
}
],
"signStep": "users",
"tsaType": "signatureOnly"
},
"readBy": [
"<string>"
],
"revision": 123,
"rights": {
"editGroups": [
"<string>"
],
"editUsers": [
"<string>"
],
"private": true,
"readGroups": [
"<string>"
],
"readUsers": [
"<string>"
]
},
"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"
}
]
},
"showBarcode": true,
"signatureChecksums": [
"<string>"
],
"signatureComponents": [
{
"actor": {
"name": "john.doe@example.com",
"type": "internal"
},
"algorithm": "SHA256withRSA",
"align": "center",
"backgroundColor": "#F5F5F5",
"bold": true,
"color": "#1A1A1A",
"comment": "Reviewed with the legal team.",
"component": "signature",
"coverAll": true,
"date": "2023-11-07T05:31:56Z",
"decorateFile": "frame",
"fileHash": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"fingerprintSha256": "A13767DDACA2D1B0ACAEB7CD3145D3D1CE14E208106318968FAF9882C8423F43",
"font": "opensans",
"fontSize": 11,
"imageSignature": true,
"ip": "203.0.113.42",
"isLTV": true,
"isSelfSigned": true,
"issuer": "CN=Example Qualified CA,O=Example Trust Services,C=CZ",
"isVerified": true,
"keyUsage": [
"digitalSignature",
"nonRepudiation"
],
"link": "https://example.com/contracts/2024-114",
"location": "Czechia, Prague, Prague",
"lockRatio": true,
"maxCharacters": 20,
"name": "John Doe",
"pages": [
3
],
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
},
"qcCompliance": true,
"qcSSCD": true,
"qcTypes": [
"esign"
],
"readOnly": true,
"reason": "Signed securely by John Doe john.doe@example.com",
"reconstructed": true,
"sealProvider": "company-qseal",
"serialNumber": "4DC32DD214A19795A2111484900663142F513989",
"signatureProvider": "internal",
"signee": "john.doe@example.com",
"signId": "29326ml64lg2tjf8cz2ka7edcmpb3u2m7os5af3r09fquo6sbegzgsyebannd4yz",
"signOnBehalfOf": "john.doe@example.com",
"signOnBehalfOfFullname": "John Doe",
"stampName": "Head office stamp",
"subject": "CN=John Doe,O=Example Ltd,C=CZ",
"subtype": "annotation_generic",
"text": "Document validity: ",
"trustedBy": [
"EUTL"
],
"tsaEnabled": true,
"tsaProvider": "CN=Example TSA,O=Example Trust Services,C=CZ",
"tsaServer": "<string>",
"userRoleId": 123,
"userRoleName": "Recipient 1",
"validityFrom": "2023-11-07T05:31:56Z",
"validityTo": "2023-11-07T05:31:56Z"
}
],
"signatureProvider": "internal",
"signatureType": "signature",
"signFields": [
{
"align": "center",
"backgroundColor": "#FFFF00",
"bold": true,
"cancelled": true,
"color": "#000000",
"config": "{\"multipageType\":\"all\",\"multiPageCustom\":\"1\"}",
"fieldGroupId": 123,
"fileName": "evidence.pdf",
"filled": true,
"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,
"shareId": [
"sd0oAvfpB4k0yDf787x4"
],
"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
}
],
"sourceTemplate": {
"id": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"name": "NDA for new suppliers"
},
"star": true,
"submittedFiles": [
{
"additionalInfo": "<string>",
"content": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"fileExtension": "pdf",
"fileType": "pdf",
"hasPassword": true,
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"name": "IDCardFront.pdf",
"pages": 8,
"pdfPreview": {
"content": "p7kd2m4s9xq1v8b3n6c0z5w2e7r4t1y9u3i6o8a2s5d7f0g4h1j3k6l9z2x5c8v0b4",
"failureReason": "conversion_error",
"status": "failed_irrecoverable",
"statusDate": "2023-11-07T05:31:56Z"
},
"public": true,
"size": 522481,
"timestamp": "2023-11-07T05:31:56Z",
"user": "john.doe@example.com"
}
],
"subscriptions": {
"comment": [
"<string>"
],
"update": [
"<string>"
],
"workflowChange": [
"<string>"
],
"workflowFinished": [
"<string>"
]
},
"tags": {
"global": [
"<string>"
],
"user": [
"<string>"
]
},
"templateId": "cba71ea5-9a68-431a-a5c2-6d9932792ec7",
"term": {
"nonFixedTerm": {
"noticePeriod": "3M",
"terminationStartDate": "2026-10-01T00:00:00.000Z"
},
"reminders": [
{
"nextReminderOn": "2026-11-30T08:00:00.000Z",
"notifyOwner": true,
"period": "30d",
"recipients": [
"jane.doe@example.com"
],
"sentOn": "2026-11-30T08:00:07.412Z",
"state": "scheduled",
"time": "09:00",
"timeZone": "Europe/Prague"
}
],
"renewal": {
"finalDate": "2030-12-31T00:00:00.000Z",
"lastRenewedOn": "2027-01-01T00:15:03.118Z",
"maxRenewals": 50,
"noticeDueOn": "2026-09-30T00:00:00.000Z",
"noticePeriod": "3M",
"period": "1y",
"renewedCount": 1,
"type": "auto"
}
},
"termType": "fixed_term",
"thumbnails": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"tsaType": "signatureOnly",
"type": "ext",
"usePdfA": true,
"user": {
"name": "john.doe@example.com",
"type": "internal"
},
"workflow": {
"actions": [
{
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"archive": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"following": "<string>",
"groupFilter": "<string>",
"id": 5,
"important": false,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "create",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"revertSignatures": true,
"rights": "<string>",
"send": true,
"sentiment": "neutral",
"signAction": true,
"signFields": true,
"stateId": 0,
"transitionAction": "<string>",
"type": "action",
"userFilter": "<string>"
}
],
"alreadySigned": [
{
"action": "sign",
"customActionName": "<string>",
"hasTurn": true,
"hasTurnSince": "2023-11-07T05:31:56Z",
"isMandatory": true,
"order": 123,
"quorum": 123,
"shareId": "sd0oAvfpB4k0yDf787x4",
"user": {
"name": "john.doe@example.com",
"type": "internal"
}
}
],
"archived": true,
"cancelStateId": 123,
"commentOnlyVersions": [
123
],
"currentShareSeen": [
{
"name": "john.doe@example.com",
"type": "internal"
}
],
"group": [
"<string>"
],
"history": [
{
"action": -17,
"comment": "<string>",
"commentAnchor": {
"page": 1,
"position": {
"percentHeight": 0.03176305676305678,
"percentWidth": 0.43921568627450985,
"percentX": 0.49892906639788337,
"percentY": 0.2465883269647186
}
},
"commentAttachment": "as0ia4jdqecwq0u5s1omd9krs4u244ic2n2545kyhyat9imkwyg1bgec16r94tth",
"commentDeleted": true,
"commentLastEditedOn": "2026-09-22T09:15:30.000Z",
"commentResolutionChangedBy": {
"name": "john.doe@example.com",
"type": "internal"
},
"commentResolutionChangedOn": "2026-11-04T10:00:00.000Z",
"commentResolved": true,
"connection": {
"ip": "192.0.2.15",
"location": {
"city": "Pilsen",
"country": "Czech Republic",
"countryCode": "CZ",
"region": "Vysočina"
}
},
"date": "2023-11-07T05:31:56Z",
"fileChanged": true,
"fileName": "contract.pdf",
"groupReceiver": [
"<string>"
],
"hidden": true,
"historyId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92",
"isPublicComment": true,
"mentionedDocuments": [
"<string>"
],
"mentionedUsers": [
"jane.doe@example.com"
],
"mimetype": "application/pdf",
"name": "document_signed",
"newExpiresOn": "2027-12-31T00:00:00.000Z",
"newRevision": 123,
"newTitle": "<string>",
"originalExpiresOn": "2026-12-31T00:00:00.000Z",
"originalFileName": "contract.docx",
"originalMimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"originalOwner": "john.doe@example.com",
"originalPublicAttachment": true,
"originalRevision": 123,
"originalTitle": "<string>",
"owner": "jane.doe@example.com",
"publicAttachment": true,
"reactions": [
{
"type": "like",
"users": [
"<string>"
]
}
],
"renewedCount": 123,
"rights": {
"edit": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"jane.doe@example.com"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"jane.doe@example.com"
]
},
"madePrivate": true,
"madePublic": true,
"read": {
"addedGroups": [
"<string>"
],
"addedUsers": [
"jane.doe@example.com"
],
"removedGroups": [
"<string>"
],
"removedUsers": [
"jane.doe@example.com"
]
}
},
"sent": true,
"share": [
{
"active": true,
"customActionName": "<string>",
"delegated": true,
"delegatedChainId": "sd0oAvfpB4k0yDf787x4",
"delegatedFrom": "sd0oAvfpB4k0yDf787x4",
"isMandatory": true,
"order": 1,
"originalShareType": "sign",
"phone": "+420123456789",
"positive": true,
"quorum": 2,
"rights": [
"print",
"metadata"
],
"shareDuration": 86400000,
"shareExpiration": "2023-11-07T05:31:56Z",
"shareId": "sd0oAvfpB4k0yDf787x4",
"shareMode": "sms_protected",
"shareReminded": true,
"shareSeen": true,
"shareStateName": "inprogress",
"shareTo": {
"name": "john.doe@example.com",
"type": "internal"
},
"shareType": "sign",
"signId": "<string>",
"updates": [
{
"hasChanged": true,
"name": "validUntil",
"newValue": "<string>",
"oldValue": "<string>"
}
],
"verifiedWith": {
"factor": "sms",
"fullname": "<string>",
"fullnameAr": "<string>",
"kycFactors": [
"idVerification"
],
"oauthFactors": [
{
"type": "email",
"value": "<string>"
}
],
"value": "<string>"
}
}
],
"shareActionsCompleted": true,
"shareActive": true,
"shareDuration": 86400000,
"shareFinal": true,
"shareGroup": [
"<string>"
],
"shareOwner": "john.doe@example.com",
"shareSequential": true,
"signatureComponents": [
"signature",
"timestamp"
],
"signId": "<string>",
"state": 123,
"tags": [
"<string>"
],
"threadParentId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92",
"titleChanged": true,
"type": "document_signed",
"user": {
"name": "john.doe@example.com",
"type": "internal"
},
"userReceiver": [
{
"name": "john.doe@example.com",
"type": "internal"
}
],
"version": 123
}
],
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc590",
"lastAction": {
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"archive": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"following": "<string>",
"groupFilter": "<string>",
"id": 5,
"important": true,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "create",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"revertSignatures": true,
"rights": "<string>",
"send": true,
"sentiment": "neutral",
"signAction": true,
"signFields": true,
"stateId": 0,
"userFilter": "<string>"
},
"lastRequest": {
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"groupFilter": "<string>",
"id": 5,
"important": true,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "request_approval",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"resolvedBy": 5,
"revertSignatures": true,
"rework": true,
"rights": "<string>",
"sentiment": "neutral",
"sign": true,
"signAction": true,
"signFields": true,
"stateId": 0,
"userFilter": "<string>"
},
"receivedDate": "2023-11-07T05:31:56Z",
"scheduledTransition": {
"actionId": 5,
"fieldReference": "D_EMPLOYMENT_START_DATE",
"on": "2023-11-07T05:31:56Z"
},
"shareStateName": "inprogress",
"state": 1,
"stateName": "created",
"timeOfDuration": 86400000,
"user": [
{
"name": "john.doe@example.com",
"type": "internal"
}
],
"waitingFor": [
{
"action": "sign",
"customActionName": "<string>",
"hasTurn": true,
"hasTurnSince": "2023-11-07T05:31:56Z",
"isMandatory": true,
"order": 123,
"quorum": 123,
"shareId": "sd0oAvfpB4k0yDf787x4",
"user": {
"name": "john.doe@example.com",
"type": "internal"
}
}
],
"workflowType": "wf_archive"
}
}
],
"users": {}
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"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": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Query Parameters
Body
Comment stored on the workflow history record of the executed action. Its text is scanned for user and document mentions. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.
2000"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."
Users receiving the document as recipients of the executed workflow action, by username. A value that matches no user but is a valid email address becomes an external recipient and is given a share.
Username that uniquely identifies a user in the system. Usually an email address. A single "+" sub-addressing tag (RFC 5233) is allowed in the local part.
1^[A-Za-z0-9.@_+-]+$Response
Returns the created document together with the users it references.