curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/share?token=' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"shareTo": "john.doe+member@example.com",
"allowedOAuths": [
"google"
],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"customActionName": "Countersign",
"fullname": "John Doe",
"isMandatory": true,
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": [
"identomat"
],
"language": "en",
"mail": "jane.doe+2024@example.com",
"message": "Please review this document by Friday.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"order": 1,
"password": "553827",
"phone": "+493012345678",
"quorum": 2,
"rights": [
"print",
"metadata",
"canAnnotateOnReject",
"rejectWithoutComment",
"uploadFiles"
],
"sendAttachmentsOnComplete": false,
"validUntil": "2023-11-07T05:31:56Z"
}
],
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"objectType": "document",
"type": "d_default",
"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
}
],
"dateFormat": "DD/MM/YYYY",
"draftId": "<string>",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": false,
"message": "New client agreement to sign.",
"releaseDeletedTemplate": false,
"returnUrl": "https://example.com/thank-you",
"sequential": false,
"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": [],
"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": [],
"user": "john.doe@example.com"
}
],
"usersWithOAuthFactors": [
{
"oauthFactors": [
{
"type": "phoneNumber",
"value": "+420777123456"
}
],
"oauthFactorTypes": [],
"user": "john.doe@example.com"
}
]
},
"signatureFields": [
{
"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
}
],
"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
}
],
"templateId": "<string>",
"timeFormat": "hh:mm",
"timezone": "Europe/London",
"useTsa": false
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share?token="
payload = {
"data": [
{
"shareTo": "john.doe+member@example.com",
"allowedOAuths": ["google"],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"customActionName": "Countersign",
"fullname": "John Doe",
"isMandatory": True,
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": ["identomat"],
"language": "en",
"mail": "jane.doe+2024@example.com",
"message": "Please review this document by Friday.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"order": 1,
"password": "553827",
"phone": "+493012345678",
"quorum": 2,
"rights": ["print", "metadata", "canAnnotateOnReject", "rejectWithoutComment", "uploadFiles"],
"sendAttachmentsOnComplete": False,
"validUntil": "2023-11-07T05:31:56Z"
}
],
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"objectType": "document",
"type": "d_default",
"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
}
],
"dateFormat": "DD/MM/YYYY",
"draftId": "<string>",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": False,
"message": "New client agreement to sign.",
"releaseDeletedTemplate": False,
"returnUrl": "https://example.com/thank-you",
"sequential": False,
"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": [],
"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": [],
"user": "john.doe@example.com"
}
],
"usersWithOAuthFactors": [
{
"oauthFactors": [
{
"type": "phoneNumber",
"value": "+420777123456"
}
],
"oauthFactorTypes": [],
"user": "john.doe@example.com"
}
]
},
"signatureFields": [
{
"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
}
],
"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
}
],
"templateId": "<string>",
"timeFormat": "hh:mm",
"timezone": "Europe/London",
"useTsa": 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({
data: [
{
shareTo: 'john.doe+member@example.com',
allowedOAuths: ['google'],
automaticReminder: {intervalDays: 2, start: '2023-11-07T05:31:56Z'},
customActionName: 'Countersign',
fullname: 'John Doe',
isMandatory: true,
kycDocumentTypes: [],
kycExpectedData: {
dateOfBirth: '1988-11-13T00:00:00.000Z',
documentNumber: 'X1234567',
nationality: 'CZE'
},
kycFactors: [],
kycProviders: ['identomat'],
language: 'en',
mail: 'jane.doe+2024@example.com',
message: 'Please review this document by Friday.',
nafathId: '<string>',
oauthFactors: [{type: 'email', value: 'john.doe@example.com'}],
order: 1,
password: '553827',
phone: '+493012345678',
quorum: 2,
rights: [
'print',
'metadata',
'canAnnotateOnReject',
'rejectWithoutComment',
'uploadFiles'
],
sendAttachmentsOnComplete: false,
validUntil: '2023-11-07T05:31:56Z'
}
],
id: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
objectType: 'document',
type: 'd_default',
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
}
],
dateFormat: 'DD/MM/YYYY',
draftId: '<string>',
images: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
subtype: 'image_barcode',
zIndex: 0
}
],
isPublicComment: false,
message: 'New client agreement to sign.',
releaseDeletedTemplate: false,
returnUrl: 'https://example.com/thank-you',
sequential: false,
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: [],
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: [],
user: 'john.doe@example.com'
}
],
usersWithOAuthFactors: [
{
oauthFactors: [{type: 'phoneNumber', value: '+420777123456'}],
oauthFactorTypes: [],
user: 'john.doe@example.com'
}
]
},
signatureFields: [
{
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
}
],
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
}
],
templateId: '<string>',
timeFormat: 'hh:mm',
timezone: 'Europe/London',
useTsa: false
})
};
fetch('https://sandbox.circularo.com/api/v1/share?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/share?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([
'data' => [
[
'shareTo' => 'john.doe+member@example.com',
'allowedOAuths' => [
'google'
],
'automaticReminder' => [
'intervalDays' => 2,
'start' => '2023-11-07T05:31:56Z'
],
'customActionName' => 'Countersign',
'fullname' => 'John Doe',
'isMandatory' => true,
'kycDocumentTypes' => [
],
'kycExpectedData' => [
'dateOfBirth' => '1988-11-13T00:00:00.000Z',
'documentNumber' => 'X1234567',
'nationality' => 'CZE'
],
'kycFactors' => [
],
'kycProviders' => [
'identomat'
],
'language' => 'en',
'mail' => 'jane.doe+2024@example.com',
'message' => 'Please review this document by Friday.',
'nafathId' => '<string>',
'oauthFactors' => [
[
'type' => 'email',
'value' => 'john.doe@example.com'
]
],
'order' => 1,
'password' => '553827',
'phone' => '+493012345678',
'quorum' => 2,
'rights' => [
'print',
'metadata',
'canAnnotateOnReject',
'rejectWithoutComment',
'uploadFiles'
],
'sendAttachmentsOnComplete' => false,
'validUntil' => '2023-11-07T05:31:56Z'
]
],
'id' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'objectType' => 'document',
'type' => 'd_default',
'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
]
],
'dateFormat' => 'DD/MM/YYYY',
'draftId' => '<string>',
'images' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'subtype' => 'image_barcode',
'zIndex' => 0
]
],
'isPublicComment' => false,
'message' => 'New client agreement to sign.',
'releaseDeletedTemplate' => false,
'returnUrl' => 'https://example.com/thank-you',
'sequential' => false,
'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' => [
],
'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' => [
],
'user' => 'john.doe@example.com'
]
],
'usersWithOAuthFactors' => [
[
'oauthFactors' => [
[
'type' => 'phoneNumber',
'value' => '+420777123456'
]
],
'oauthFactorTypes' => [
],
'user' => 'john.doe@example.com'
]
]
],
'signatureFields' => [
[
'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
]
],
'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
]
],
'templateId' => '<string>',
'timeFormat' => 'hh:mm',
'timezone' => 'Europe/London',
'useTsa' => 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/share?token="
payload := strings.NewReader("{\n \"data\": [\n {\n \"shareTo\": \"john.doe+member@example.com\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"customActionName\": \"Countersign\",\n \"fullname\": \"John Doe\",\n \"isMandatory\": true,\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"language\": \"en\",\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Please review this document by Friday.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"order\": 1,\n \"password\": \"553827\",\n \"phone\": \"+493012345678\",\n \"quorum\": 2,\n \"rights\": [\n \"print\",\n \"metadata\",\n \"canAnnotateOnReject\",\n \"rejectWithoutComment\",\n \"uploadFiles\"\n ],\n \"sendAttachmentsOnComplete\": false,\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"objectType\": \"document\",\n \"type\": \"d_default\",\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 \"dateFormat\": \"DD/MM/YYYY\",\n \"draftId\": \"<string>\",\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 \"isPublicComment\": false,\n \"message\": \"New client agreement to sign.\",\n \"releaseDeletedTemplate\": false,\n \"returnUrl\": \"https://example.com/thank-you\",\n \"sequential\": false,\n \"shareSettings\": {\n \"allowedOAuth\": \"<string>\",\n \"canAnnotateOnReject\": true,\n \"delegate\": true,\n \"expirationEnabled\": true,\n \"expirationTime\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"isPublicComment\": true,\n \"kycFactors\": [\n \"idVerification\",\n \"livenessDetection\"\n ],\n \"kycProvider\": \"identomat\",\n \"mailProtection\": true,\n \"message\": \"<string>\",\n \"metadata\": true,\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"oAuthProtection\": true,\n \"password\": \"<string>\",\n \"passwordProtection\": true,\n \"print\": true,\n \"rejectWithoutComment\": true,\n \"remindersEnabled\": true,\n \"remindersIntervalDays\": 123,\n \"remindersStartDays\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"smsProtection\": true,\n \"uploadFiles\": true,\n \"usersWithKycData\": [\n {\n \"kycDocumentTypes\": [\n \"passport\",\n \"idCard\"\n ],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycExpectedDataFields\": [],\n \"user\": \"john.doe@example.com\"\n }\n ],\n \"usersWithOAuthFactors\": [\n {\n \"oauthFactors\": [\n {\n \"type\": \"phoneNumber\",\n \"value\": \"+420777123456\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"user\": \"john.doe@example.com\"\n }\n ]\n },\n \"signatureFields\": [\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 \"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 \"templateId\": \"<string>\",\n \"timeFormat\": \"hh:mm\",\n \"timezone\": \"Europe/London\",\n \"useTsa\": 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/share?token=")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"shareTo\": \"john.doe+member@example.com\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"customActionName\": \"Countersign\",\n \"fullname\": \"John Doe\",\n \"isMandatory\": true,\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"language\": \"en\",\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Please review this document by Friday.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"order\": 1,\n \"password\": \"553827\",\n \"phone\": \"+493012345678\",\n \"quorum\": 2,\n \"rights\": [\n \"print\",\n \"metadata\",\n \"canAnnotateOnReject\",\n \"rejectWithoutComment\",\n \"uploadFiles\"\n ],\n \"sendAttachmentsOnComplete\": false,\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"objectType\": \"document\",\n \"type\": \"d_default\",\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 \"dateFormat\": \"DD/MM/YYYY\",\n \"draftId\": \"<string>\",\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 \"isPublicComment\": false,\n \"message\": \"New client agreement to sign.\",\n \"releaseDeletedTemplate\": false,\n \"returnUrl\": \"https://example.com/thank-you\",\n \"sequential\": false,\n \"shareSettings\": {\n \"allowedOAuth\": \"<string>\",\n \"canAnnotateOnReject\": true,\n \"delegate\": true,\n \"expirationEnabled\": true,\n \"expirationTime\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"isPublicComment\": true,\n \"kycFactors\": [\n \"idVerification\",\n \"livenessDetection\"\n ],\n \"kycProvider\": \"identomat\",\n \"mailProtection\": true,\n \"message\": \"<string>\",\n \"metadata\": true,\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"oAuthProtection\": true,\n \"password\": \"<string>\",\n \"passwordProtection\": true,\n \"print\": true,\n \"rejectWithoutComment\": true,\n \"remindersEnabled\": true,\n \"remindersIntervalDays\": 123,\n \"remindersStartDays\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"smsProtection\": true,\n \"uploadFiles\": true,\n \"usersWithKycData\": [\n {\n \"kycDocumentTypes\": [\n \"passport\",\n \"idCard\"\n ],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycExpectedDataFields\": [],\n \"user\": \"john.doe@example.com\"\n }\n ],\n \"usersWithOAuthFactors\": [\n {\n \"oauthFactors\": [\n {\n \"type\": \"phoneNumber\",\n \"value\": \"+420777123456\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"user\": \"john.doe@example.com\"\n }\n ]\n },\n \"signatureFields\": [\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 \"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 \"templateId\": \"<string>\",\n \"timeFormat\": \"hh:mm\",\n \"timezone\": \"Europe/London\",\n \"useTsa\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share?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 \"data\": [\n {\n \"shareTo\": \"john.doe+member@example.com\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"customActionName\": \"Countersign\",\n \"fullname\": \"John Doe\",\n \"isMandatory\": true,\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"language\": \"en\",\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Please review this document by Friday.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"order\": 1,\n \"password\": \"553827\",\n \"phone\": \"+493012345678\",\n \"quorum\": 2,\n \"rights\": [\n \"print\",\n \"metadata\",\n \"canAnnotateOnReject\",\n \"rejectWithoutComment\",\n \"uploadFiles\"\n ],\n \"sendAttachmentsOnComplete\": false,\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"objectType\": \"document\",\n \"type\": \"d_default\",\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 \"dateFormat\": \"DD/MM/YYYY\",\n \"draftId\": \"<string>\",\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 \"isPublicComment\": false,\n \"message\": \"New client agreement to sign.\",\n \"releaseDeletedTemplate\": false,\n \"returnUrl\": \"https://example.com/thank-you\",\n \"sequential\": false,\n \"shareSettings\": {\n \"allowedOAuth\": \"<string>\",\n \"canAnnotateOnReject\": true,\n \"delegate\": true,\n \"expirationEnabled\": true,\n \"expirationTime\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"isPublicComment\": true,\n \"kycFactors\": [\n \"idVerification\",\n \"livenessDetection\"\n ],\n \"kycProvider\": \"identomat\",\n \"mailProtection\": true,\n \"message\": \"<string>\",\n \"metadata\": true,\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"oAuthProtection\": true,\n \"password\": \"<string>\",\n \"passwordProtection\": true,\n \"print\": true,\n \"rejectWithoutComment\": true,\n \"remindersEnabled\": true,\n \"remindersIntervalDays\": 123,\n \"remindersStartDays\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"smsProtection\": true,\n \"uploadFiles\": true,\n \"usersWithKycData\": [\n {\n \"kycDocumentTypes\": [\n \"passport\",\n \"idCard\"\n ],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycExpectedDataFields\": [],\n \"user\": \"john.doe@example.com\"\n }\n ],\n \"usersWithOAuthFactors\": [\n {\n \"oauthFactors\": [\n {\n \"type\": \"phoneNumber\",\n \"value\": \"+420777123456\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"user\": \"john.doe@example.com\"\n }\n ]\n },\n \"signatureFields\": [\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 \"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 \"templateId\": \"<string>\",\n \"timeFormat\": \"hh:mm\",\n \"timezone\": \"Europe/London\",\n \"useTsa\": false\n}"
response = http.request(request)
puts response.read_body[
{
"allowedOAuths": [
"google"
],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"customActionName": "Countersign",
"dateFormat": "DD.MM.YYYY",
"delegatedChainId": "<string>",
"delegatedFrom": "<string>",
"fullname": "<string>",
"isActive": true,
"isDelegated": true,
"isMandatory": true,
"isPermanentViewToken": true,
"kycDocumentTypes": [
"idCard"
],
"kycExpectedData": {
"dateOfBirthRequired": true,
"documentNumberRequired": true,
"nationalityRequired": true
},
"kycFactors": [
"idVerification"
],
"kycProviders": [
"identomat"
],
"language": "en",
"message": "<string>",
"messageRead": true,
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "<string>"
}
],
"order": 123,
"otpMail": "<string>",
"otpPhone": "<string>",
"passwordRequired": true,
"privateMessage": "<string>",
"quorum": 123,
"remindedOn": "2023-11-07T05:31:56Z",
"returnUrl": "https://example.com/thank-you",
"rights": [
"print",
"delegate"
],
"sendAttachmentsOnComplete": true,
"sequential": true,
"shareDate": "2023-11-07T05:31:56Z",
"sharedBy": "<string>",
"sharedFlags": [
"viewed",
"signed"
],
"sharedObjectEsId": "<string>",
"sharedObjectEsType": "<string>",
"sharedObjectType": "document",
"sharedUsername": "<string>",
"sharedWith": [
"<string>"
],
"shareGroup": "<string>",
"shareId": "5Ds8g5cB3a5JydtvXALu",
"shareType": "sign",
"timeFormat": "HH:mm",
"tokenGenerated": true,
"validUntil": "2023-11-07T05:31:56Z"
}
]{
"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"
}Send a document to its recipients
POST /share
Sends a document out to the people who are to see it or act on it: one share is created per recipient, the document is put into the transaction they are part of, and everyone whose turn it is gets notified.
Each entry in data says who the document goes to, what is asked of them, and - for a recipient without an account here - how their access is guarded. Recipients act all at once unless sequential is set, in which case they act in the order they carry and each step is notified only when its turn comes; several recipients acting at the same point may be settled by a quorum rather than by all of them. A recipient from outside the workspace is written to with a link to the document, one from inside is pointed at the document itself.
The same call may prepare the document for what is being asked: sign fields for the recipients to fill in, and annotations, images or a signature the sender applies while sending. Sign fields sent here replace whatever the document carried before.
Being sent out for an action is a one-off in a document’s life: the sending stays in its history for good, so a document that has ever been sent out for one cannot be sent out for another, however that transaction ended and even after its workflow is reset. Sharing a document only to be read is free of that and may be done at any time. It does not count against the workspace’s transactions, unless the sender signs the document in the same call - their signature takes one, as signing the document on its own does.
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/share?token=' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"shareTo": "john.doe+member@example.com",
"allowedOAuths": [
"google"
],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"customActionName": "Countersign",
"fullname": "John Doe",
"isMandatory": true,
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": [
"identomat"
],
"language": "en",
"mail": "jane.doe+2024@example.com",
"message": "Please review this document by Friday.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"order": 1,
"password": "553827",
"phone": "+493012345678",
"quorum": 2,
"rights": [
"print",
"metadata",
"canAnnotateOnReject",
"rejectWithoutComment",
"uploadFiles"
],
"sendAttachmentsOnComplete": false,
"validUntil": "2023-11-07T05:31:56Z"
}
],
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"objectType": "document",
"type": "d_default",
"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
}
],
"dateFormat": "DD/MM/YYYY",
"draftId": "<string>",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": false,
"message": "New client agreement to sign.",
"releaseDeletedTemplate": false,
"returnUrl": "https://example.com/thank-you",
"sequential": false,
"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": [],
"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": [],
"user": "john.doe@example.com"
}
],
"usersWithOAuthFactors": [
{
"oauthFactors": [
{
"type": "phoneNumber",
"value": "+420777123456"
}
],
"oauthFactorTypes": [],
"user": "john.doe@example.com"
}
]
},
"signatureFields": [
{
"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
}
],
"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
}
],
"templateId": "<string>",
"timeFormat": "hh:mm",
"timezone": "Europe/London",
"useTsa": false
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share?token="
payload = {
"data": [
{
"shareTo": "john.doe+member@example.com",
"allowedOAuths": ["google"],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"customActionName": "Countersign",
"fullname": "John Doe",
"isMandatory": True,
"kycDocumentTypes": [],
"kycExpectedData": {
"dateOfBirth": "1988-11-13T00:00:00.000Z",
"documentNumber": "X1234567",
"nationality": "CZE"
},
"kycFactors": [],
"kycProviders": ["identomat"],
"language": "en",
"mail": "jane.doe+2024@example.com",
"message": "Please review this document by Friday.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"order": 1,
"password": "553827",
"phone": "+493012345678",
"quorum": 2,
"rights": ["print", "metadata", "canAnnotateOnReject", "rejectWithoutComment", "uploadFiles"],
"sendAttachmentsOnComplete": False,
"validUntil": "2023-11-07T05:31:56Z"
}
],
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"objectType": "document",
"type": "d_default",
"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
}
],
"dateFormat": "DD/MM/YYYY",
"draftId": "<string>",
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": False,
"message": "New client agreement to sign.",
"releaseDeletedTemplate": False,
"returnUrl": "https://example.com/thank-you",
"sequential": False,
"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": [],
"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": [],
"user": "john.doe@example.com"
}
],
"usersWithOAuthFactors": [
{
"oauthFactors": [
{
"type": "phoneNumber",
"value": "+420777123456"
}
],
"oauthFactorTypes": [],
"user": "john.doe@example.com"
}
]
},
"signatureFields": [
{
"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
}
],
"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
}
],
"templateId": "<string>",
"timeFormat": "hh:mm",
"timezone": "Europe/London",
"useTsa": 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({
data: [
{
shareTo: 'john.doe+member@example.com',
allowedOAuths: ['google'],
automaticReminder: {intervalDays: 2, start: '2023-11-07T05:31:56Z'},
customActionName: 'Countersign',
fullname: 'John Doe',
isMandatory: true,
kycDocumentTypes: [],
kycExpectedData: {
dateOfBirth: '1988-11-13T00:00:00.000Z',
documentNumber: 'X1234567',
nationality: 'CZE'
},
kycFactors: [],
kycProviders: ['identomat'],
language: 'en',
mail: 'jane.doe+2024@example.com',
message: 'Please review this document by Friday.',
nafathId: '<string>',
oauthFactors: [{type: 'email', value: 'john.doe@example.com'}],
order: 1,
password: '553827',
phone: '+493012345678',
quorum: 2,
rights: [
'print',
'metadata',
'canAnnotateOnReject',
'rejectWithoutComment',
'uploadFiles'
],
sendAttachmentsOnComplete: false,
validUntil: '2023-11-07T05:31:56Z'
}
],
id: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
objectType: 'document',
type: 'd_default',
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
}
],
dateFormat: 'DD/MM/YYYY',
draftId: '<string>',
images: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
subtype: 'image_barcode',
zIndex: 0
}
],
isPublicComment: false,
message: 'New client agreement to sign.',
releaseDeletedTemplate: false,
returnUrl: 'https://example.com/thank-you',
sequential: false,
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: [],
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: [],
user: 'john.doe@example.com'
}
],
usersWithOAuthFactors: [
{
oauthFactors: [{type: 'phoneNumber', value: '+420777123456'}],
oauthFactorTypes: [],
user: 'john.doe@example.com'
}
]
},
signatureFields: [
{
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
}
],
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
}
],
templateId: '<string>',
timeFormat: 'hh:mm',
timezone: 'Europe/London',
useTsa: false
})
};
fetch('https://sandbox.circularo.com/api/v1/share?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/share?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([
'data' => [
[
'shareTo' => 'john.doe+member@example.com',
'allowedOAuths' => [
'google'
],
'automaticReminder' => [
'intervalDays' => 2,
'start' => '2023-11-07T05:31:56Z'
],
'customActionName' => 'Countersign',
'fullname' => 'John Doe',
'isMandatory' => true,
'kycDocumentTypes' => [
],
'kycExpectedData' => [
'dateOfBirth' => '1988-11-13T00:00:00.000Z',
'documentNumber' => 'X1234567',
'nationality' => 'CZE'
],
'kycFactors' => [
],
'kycProviders' => [
'identomat'
],
'language' => 'en',
'mail' => 'jane.doe+2024@example.com',
'message' => 'Please review this document by Friday.',
'nafathId' => '<string>',
'oauthFactors' => [
[
'type' => 'email',
'value' => 'john.doe@example.com'
]
],
'order' => 1,
'password' => '553827',
'phone' => '+493012345678',
'quorum' => 2,
'rights' => [
'print',
'metadata',
'canAnnotateOnReject',
'rejectWithoutComment',
'uploadFiles'
],
'sendAttachmentsOnComplete' => false,
'validUntil' => '2023-11-07T05:31:56Z'
]
],
'id' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'objectType' => 'document',
'type' => 'd_default',
'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
]
],
'dateFormat' => 'DD/MM/YYYY',
'draftId' => '<string>',
'images' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'subtype' => 'image_barcode',
'zIndex' => 0
]
],
'isPublicComment' => false,
'message' => 'New client agreement to sign.',
'releaseDeletedTemplate' => false,
'returnUrl' => 'https://example.com/thank-you',
'sequential' => false,
'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' => [
],
'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' => [
],
'user' => 'john.doe@example.com'
]
],
'usersWithOAuthFactors' => [
[
'oauthFactors' => [
[
'type' => 'phoneNumber',
'value' => '+420777123456'
]
],
'oauthFactorTypes' => [
],
'user' => 'john.doe@example.com'
]
]
],
'signatureFields' => [
[
'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
]
],
'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
]
],
'templateId' => '<string>',
'timeFormat' => 'hh:mm',
'timezone' => 'Europe/London',
'useTsa' => 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/share?token="
payload := strings.NewReader("{\n \"data\": [\n {\n \"shareTo\": \"john.doe+member@example.com\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"customActionName\": \"Countersign\",\n \"fullname\": \"John Doe\",\n \"isMandatory\": true,\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"language\": \"en\",\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Please review this document by Friday.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"order\": 1,\n \"password\": \"553827\",\n \"phone\": \"+493012345678\",\n \"quorum\": 2,\n \"rights\": [\n \"print\",\n \"metadata\",\n \"canAnnotateOnReject\",\n \"rejectWithoutComment\",\n \"uploadFiles\"\n ],\n \"sendAttachmentsOnComplete\": false,\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"objectType\": \"document\",\n \"type\": \"d_default\",\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 \"dateFormat\": \"DD/MM/YYYY\",\n \"draftId\": \"<string>\",\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 \"isPublicComment\": false,\n \"message\": \"New client agreement to sign.\",\n \"releaseDeletedTemplate\": false,\n \"returnUrl\": \"https://example.com/thank-you\",\n \"sequential\": false,\n \"shareSettings\": {\n \"allowedOAuth\": \"<string>\",\n \"canAnnotateOnReject\": true,\n \"delegate\": true,\n \"expirationEnabled\": true,\n \"expirationTime\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"isPublicComment\": true,\n \"kycFactors\": [\n \"idVerification\",\n \"livenessDetection\"\n ],\n \"kycProvider\": \"identomat\",\n \"mailProtection\": true,\n \"message\": \"<string>\",\n \"metadata\": true,\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"oAuthProtection\": true,\n \"password\": \"<string>\",\n \"passwordProtection\": true,\n \"print\": true,\n \"rejectWithoutComment\": true,\n \"remindersEnabled\": true,\n \"remindersIntervalDays\": 123,\n \"remindersStartDays\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"smsProtection\": true,\n \"uploadFiles\": true,\n \"usersWithKycData\": [\n {\n \"kycDocumentTypes\": [\n \"passport\",\n \"idCard\"\n ],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycExpectedDataFields\": [],\n \"user\": \"john.doe@example.com\"\n }\n ],\n \"usersWithOAuthFactors\": [\n {\n \"oauthFactors\": [\n {\n \"type\": \"phoneNumber\",\n \"value\": \"+420777123456\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"user\": \"john.doe@example.com\"\n }\n ]\n },\n \"signatureFields\": [\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 \"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 \"templateId\": \"<string>\",\n \"timeFormat\": \"hh:mm\",\n \"timezone\": \"Europe/London\",\n \"useTsa\": 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/share?token=")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"shareTo\": \"john.doe+member@example.com\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"customActionName\": \"Countersign\",\n \"fullname\": \"John Doe\",\n \"isMandatory\": true,\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"language\": \"en\",\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Please review this document by Friday.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"order\": 1,\n \"password\": \"553827\",\n \"phone\": \"+493012345678\",\n \"quorum\": 2,\n \"rights\": [\n \"print\",\n \"metadata\",\n \"canAnnotateOnReject\",\n \"rejectWithoutComment\",\n \"uploadFiles\"\n ],\n \"sendAttachmentsOnComplete\": false,\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"objectType\": \"document\",\n \"type\": \"d_default\",\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 \"dateFormat\": \"DD/MM/YYYY\",\n \"draftId\": \"<string>\",\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 \"isPublicComment\": false,\n \"message\": \"New client agreement to sign.\",\n \"releaseDeletedTemplate\": false,\n \"returnUrl\": \"https://example.com/thank-you\",\n \"sequential\": false,\n \"shareSettings\": {\n \"allowedOAuth\": \"<string>\",\n \"canAnnotateOnReject\": true,\n \"delegate\": true,\n \"expirationEnabled\": true,\n \"expirationTime\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"isPublicComment\": true,\n \"kycFactors\": [\n \"idVerification\",\n \"livenessDetection\"\n ],\n \"kycProvider\": \"identomat\",\n \"mailProtection\": true,\n \"message\": \"<string>\",\n \"metadata\": true,\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"oAuthProtection\": true,\n \"password\": \"<string>\",\n \"passwordProtection\": true,\n \"print\": true,\n \"rejectWithoutComment\": true,\n \"remindersEnabled\": true,\n \"remindersIntervalDays\": 123,\n \"remindersStartDays\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"smsProtection\": true,\n \"uploadFiles\": true,\n \"usersWithKycData\": [\n {\n \"kycDocumentTypes\": [\n \"passport\",\n \"idCard\"\n ],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycExpectedDataFields\": [],\n \"user\": \"john.doe@example.com\"\n }\n ],\n \"usersWithOAuthFactors\": [\n {\n \"oauthFactors\": [\n {\n \"type\": \"phoneNumber\",\n \"value\": \"+420777123456\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"user\": \"john.doe@example.com\"\n }\n ]\n },\n \"signatureFields\": [\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 \"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 \"templateId\": \"<string>\",\n \"timeFormat\": \"hh:mm\",\n \"timezone\": \"Europe/London\",\n \"useTsa\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share?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 \"data\": [\n {\n \"shareTo\": \"john.doe+member@example.com\",\n \"allowedOAuths\": [\n \"google\"\n ],\n \"automaticReminder\": {\n \"intervalDays\": 2,\n \"start\": \"2023-11-07T05:31:56Z\"\n },\n \"customActionName\": \"Countersign\",\n \"fullname\": \"John Doe\",\n \"isMandatory\": true,\n \"kycDocumentTypes\": [],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycFactors\": [],\n \"kycProviders\": [\n \"identomat\"\n ],\n \"language\": \"en\",\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Please review this document by Friday.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"order\": 1,\n \"password\": \"553827\",\n \"phone\": \"+493012345678\",\n \"quorum\": 2,\n \"rights\": [\n \"print\",\n \"metadata\",\n \"canAnnotateOnReject\",\n \"rejectWithoutComment\",\n \"uploadFiles\"\n ],\n \"sendAttachmentsOnComplete\": false,\n \"validUntil\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"objectType\": \"document\",\n \"type\": \"d_default\",\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 \"dateFormat\": \"DD/MM/YYYY\",\n \"draftId\": \"<string>\",\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 \"isPublicComment\": false,\n \"message\": \"New client agreement to sign.\",\n \"releaseDeletedTemplate\": false,\n \"returnUrl\": \"https://example.com/thank-you\",\n \"sequential\": false,\n \"shareSettings\": {\n \"allowedOAuth\": \"<string>\",\n \"canAnnotateOnReject\": true,\n \"delegate\": true,\n \"expirationEnabled\": true,\n \"expirationTime\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"isPublicComment\": true,\n \"kycFactors\": [\n \"idVerification\",\n \"livenessDetection\"\n ],\n \"kycProvider\": \"identomat\",\n \"mailProtection\": true,\n \"message\": \"<string>\",\n \"metadata\": true,\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"oAuthProtection\": true,\n \"password\": \"<string>\",\n \"passwordProtection\": true,\n \"print\": true,\n \"rejectWithoutComment\": true,\n \"remindersEnabled\": true,\n \"remindersIntervalDays\": 123,\n \"remindersStartDays\": {\n \"exactTime\": \"2026-03-01T12:00:00.000Z\",\n \"timeSize\": {\n \"size\": \"day\",\n \"span\": 3\n },\n \"type\": \"time_span_span\"\n },\n \"smsProtection\": true,\n \"uploadFiles\": true,\n \"usersWithKycData\": [\n {\n \"kycDocumentTypes\": [\n \"passport\",\n \"idCard\"\n ],\n \"kycExpectedData\": {\n \"dateOfBirth\": \"1988-11-13T00:00:00.000Z\",\n \"documentNumber\": \"X1234567\",\n \"nationality\": \"CZE\"\n },\n \"kycExpectedDataFields\": [],\n \"user\": \"john.doe@example.com\"\n }\n ],\n \"usersWithOAuthFactors\": [\n {\n \"oauthFactors\": [\n {\n \"type\": \"phoneNumber\",\n \"value\": \"+420777123456\"\n }\n ],\n \"oauthFactorTypes\": [],\n \"user\": \"john.doe@example.com\"\n }\n ]\n },\n \"signatureFields\": [\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 \"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 \"templateId\": \"<string>\",\n \"timeFormat\": \"hh:mm\",\n \"timezone\": \"Europe/London\",\n \"useTsa\": false\n}"
response = http.request(request)
puts response.read_body[
{
"allowedOAuths": [
"google"
],
"automaticReminder": {
"intervalDays": 2,
"start": "2023-11-07T05:31:56Z"
},
"customActionName": "Countersign",
"dateFormat": "DD.MM.YYYY",
"delegatedChainId": "<string>",
"delegatedFrom": "<string>",
"fullname": "<string>",
"isActive": true,
"isDelegated": true,
"isMandatory": true,
"isPermanentViewToken": true,
"kycDocumentTypes": [
"idCard"
],
"kycExpectedData": {
"dateOfBirthRequired": true,
"documentNumberRequired": true,
"nationalityRequired": true
},
"kycFactors": [
"idVerification"
],
"kycProviders": [
"identomat"
],
"language": "en",
"message": "<string>",
"messageRead": true,
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "<string>"
}
],
"order": 123,
"otpMail": "<string>",
"otpPhone": "<string>",
"passwordRequired": true,
"privateMessage": "<string>",
"quorum": 123,
"remindedOn": "2023-11-07T05:31:56Z",
"returnUrl": "https://example.com/thank-you",
"rights": [
"print",
"delegate"
],
"sendAttachmentsOnComplete": true,
"sequential": true,
"shareDate": "2023-11-07T05:31:56Z",
"sharedBy": "<string>",
"sharedFlags": [
"viewed",
"signed"
],
"sharedObjectEsId": "<string>",
"sharedObjectEsType": "<string>",
"sharedObjectType": "document",
"sharedUsername": "<string>",
"sharedWith": [
"<string>"
],
"shareGroup": "<string>",
"shareId": "5Ds8g5cB3a5JydtvXALu",
"shareType": "sign",
"timeFormat": "HH:mm",
"tokenGenerated": true,
"validUntil": "2023-11-07T05:31:56Z"
}
]{
"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
Body
Message to all the recipients, delivered with the document. A message meant for one of them alone belongs on their own entry in data. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.
2000"New client agreement to sign."
Whether a document bound to a locked template that has since been deleted is released from it, so that it can still be sent out: the binding is removed from the document and the recipients are added without the fields being checked against a template. It has no effect when templateId is sent, when the template the document is bound to still exists - the document is then checked against it as always - or on a share that places no fields, fills none and asks nobody to sign, approve or accept, which is never checked against a template.
false
Signature provider to use for the signing process. Accepts both single-step providers and the two-step I.CA providers. When a two-step provider is selected, it is stored on the document for the recipients to sign with; the sharing user can't sign synchronously with it.
datasure, emdha, internal, uaePassSign, icaQualified, icaSwStore "internal"
Response
Returns the share records created, one per recipient.
Whether the share currently holds a password the recipient has to supply before it opens. Every way of guarding a share ends in such a password, so for a one-time code, a sign-in with a trusted provider or an identity check this turns true only once the recipient has been through it.