curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/inbox/action?token=' \
--header 'Content-Type: application/json' \
--data '
{
"actionId": 3,
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"addMentionRights": true,
"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
}
],
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"groupReceiver": [
"accounting"
],
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": false,
"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
}
],
"userReceiver": [
"john.doe+member@example.com"
],
"version": 6
}
'import requests
url = "https://sandbox.circularo.com/api/v1/inbox/action?token="
payload = {
"actionId": 3,
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"addMentionRights": True,
"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
}
],
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"groupReceiver": ["accounting"],
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": False,
"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
}
],
"userReceiver": ["john.doe+member@example.com"],
"version": 6
}
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({
actionId: 3,
id: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
addMentionRights: true,
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
}
],
comment: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
groupReceiver: ['accounting'],
images: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
subtype: 'image_barcode',
zIndex: 0
}
],
isPublicComment: false,
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
}
],
userReceiver: ['john.doe+member@example.com'],
version: 6
})
};
fetch('https://sandbox.circularo.com/api/v1/inbox/action?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/inbox/action?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([
'actionId' => 3,
'id' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'addMentionRights' => true,
'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
]
],
'comment' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'groupReceiver' => [
'accounting'
],
'images' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'subtype' => 'image_barcode',
'zIndex' => 0
]
],
'isPublicComment' => false,
'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
]
],
'userReceiver' => [
'john.doe+member@example.com'
],
'version' => 6
]),
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/inbox/action?token="
payload := strings.NewReader("{\n \"actionId\": 3,\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"addMentionRights\": true,\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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"groupReceiver\": [\n \"accounting\"\n ],\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 \"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 \"userReceiver\": [\n \"john.doe+member@example.com\"\n ],\n \"version\": 6\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/inbox/action?token=")
.header("Content-Type", "application/json")
.body("{\n \"actionId\": 3,\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"addMentionRights\": true,\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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"groupReceiver\": [\n \"accounting\"\n ],\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 \"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 \"userReceiver\": [\n \"john.doe+member@example.com\"\n ],\n \"version\": 6\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/inbox/action?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 \"actionId\": 3,\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"addMentionRights\": true,\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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"groupReceiver\": [\n \"accounting\"\n ],\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 \"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 \"userReceiver\": [\n \"john.doe+member@example.com\"\n ],\n \"version\": 6\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"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": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Execute a workflow action
POST /inbox/action
Executes one action of a document workflow - approving, rejecting, signing, passing the document on, archiving it - and moves the document into the state the workflow definition assigns to that action. It is the write behind the buttons a document offers in the inbox.
Only an action the document offers in its current state can be executed, and only while the workflow is waiting for you or for one of your groups. What the action demands and what it sets off is declared by the workflow definition, not chosen here: whether a comment, a recipient or signature data is mandatory, and whether the platform goes on to sign or seal the file, file it into a folder, grant rights on it, send notifications and share invitations, or run the transition script attached to the action.
Name the people the document goes to next in userReceiver and groupReceiver. With neither of them set, an action that needs a recipient is refused and an action that does not keeps the document with you. Send version to be told that someone has changed the document since you last read it - a change that only added a comment or a similar harmless record does not stand in the way, while an edit, a rework or a restore does.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: access_inbox
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/inbox/action?token=' \
--header 'Content-Type: application/json' \
--data '
{
"actionId": 3,
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"addMentionRights": true,
"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
}
],
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"groupReceiver": [
"accounting"
],
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [
2
],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": false,
"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
}
],
"userReceiver": [
"john.doe+member@example.com"
],
"version": 6
}
'import requests
url = "https://sandbox.circularo.com/api/v1/inbox/action?token="
payload = {
"actionId": 3,
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"addMentionRights": True,
"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
}
],
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"groupReceiver": ["accounting"],
"images": [
{
"blob": "da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f",
"comment": "Processed as requested.",
"pages": [2],
"signee": "<string>",
"signFieldId": "1LTn5IimzXh68bOv",
"subtype": "image_barcode",
"zIndex": 0
}
],
"isPublicComment": False,
"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
}
],
"userReceiver": ["john.doe+member@example.com"],
"version": 6
}
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({
actionId: 3,
id: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
addMentionRights: true,
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
}
],
comment: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
groupReceiver: ['accounting'],
images: [
{
blob: 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
comment: 'Processed as requested.',
pages: [2],
signee: '<string>',
signFieldId: '1LTn5IimzXh68bOv',
subtype: 'image_barcode',
zIndex: 0
}
],
isPublicComment: false,
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
}
],
userReceiver: ['john.doe+member@example.com'],
version: 6
})
};
fetch('https://sandbox.circularo.com/api/v1/inbox/action?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/inbox/action?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([
'actionId' => 3,
'id' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'addMentionRights' => true,
'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
]
],
'comment' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'groupReceiver' => [
'accounting'
],
'images' => [
[
'blob' => 'da09a47b4f5b1xv726cfm36l8k1hkxzwmj5mszvfq6szoambdvc44v6i8hrhnu1f',
'comment' => 'Processed as requested.',
'pages' => [
2
],
'signee' => '<string>',
'signFieldId' => '1LTn5IimzXh68bOv',
'subtype' => 'image_barcode',
'zIndex' => 0
]
],
'isPublicComment' => false,
'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
]
],
'userReceiver' => [
'john.doe+member@example.com'
],
'version' => 6
]),
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/inbox/action?token="
payload := strings.NewReader("{\n \"actionId\": 3,\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"addMentionRights\": true,\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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"groupReceiver\": [\n \"accounting\"\n ],\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 \"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 \"userReceiver\": [\n \"john.doe+member@example.com\"\n ],\n \"version\": 6\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/inbox/action?token=")
.header("Content-Type", "application/json")
.body("{\n \"actionId\": 3,\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"addMentionRights\": true,\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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"groupReceiver\": [\n \"accounting\"\n ],\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 \"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 \"userReceiver\": [\n \"john.doe+member@example.com\"\n ],\n \"version\": 6\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/inbox/action?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 \"actionId\": 3,\n \"id\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"addMentionRights\": true,\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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"groupReceiver\": [\n \"accounting\"\n ],\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 \"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 \"userReceiver\": [\n \"john.doe+member@example.com\"\n ],\n \"version\": 6\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"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": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Gives every user mentioned in comment read access to the document, so a person can be pulled into the discussion even when the document was never shared with them. Without it, only users who can already read the document are recognized as mentions. Together with isPublicComment it also sends a view share to mentioned e-mail addresses that have no access yet.
Comment recorded in the document history together with the action. An action may require one or refuse one, as its workflow definition declares. 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>."