curl --request POST \
--url https://sandbox.circularo.com/api/v1/share/comment \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"commentAnchor": {
"page": 2,
"position": {
"percentHeight": 0.05,
"percentWidth": 0.3,
"percentX": 0.15,
"percentY": 0.3
}
},
"isPublicComment": false,
"threadParentId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/comment"
payload = {
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"commentAnchor": {
"page": 2,
"position": {
"percentHeight": 0.05,
"percentWidth": 0.3,
"percentX": 0.15,
"percentY": 0.3
}
},
"isPublicComment": False,
"threadParentId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"
}
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({
comment: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
commentAnchor: {
page: 2,
position: {percentHeight: 0.05, percentWidth: 0.3, percentX: 0.15, percentY: 0.3}
},
isPublicComment: false,
threadParentId: '9f1c4e2ab7d4423d8a6f0c5e3b7d1a92'
})
};
fetch('https://sandbox.circularo.com/api/v1/share/comment', 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/comment",
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([
'comment' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'commentAnchor' => [
'page' => 2,
'position' => [
'percentHeight' => 0.05,
'percentWidth' => 0.3,
'percentX' => 0.15,
'percentY' => 0.3
]
],
'isPublicComment' => false,
'threadParentId' => '9f1c4e2ab7d4423d8a6f0c5e3b7d1a92'
]),
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/comment"
payload := strings.NewReader("{\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"commentAnchor\": {\n \"page\": 2,\n \"position\": {\n \"percentHeight\": 0.05,\n \"percentWidth\": 0.3,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n }\n },\n \"isPublicComment\": false,\n \"threadParentId\": \"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92\"\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/comment")
.header("Content-Type", "application/json")
.body("{\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"commentAnchor\": {\n \"page\": 2,\n \"position\": {\n \"percentHeight\": 0.05,\n \"percentWidth\": 0.3,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n }\n },\n \"isPublicComment\": false,\n \"threadParentId\": \"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/comment")
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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"commentAnchor\": {\n \"page\": 2,\n \"position\": {\n \"percentHeight\": 0.05,\n \"percentWidth\": 0.3,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n }\n },\n \"isPublicComment\": false,\n \"threadParentId\": \"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92\"\n}"
response = http.request(request)
puts response.read_body{
"historyId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92",
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 428,
"type": "AUTH:MFA_REQUIRED",
"message": "MFA activation required",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 498,
"type": "SHARE_AUTH:TOKEN_INVALID",
"message": "Invalid share token",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Comment on a shared document
POST /share/comment
Records a remark from the recipient on the document they were given. It is written into the document’s history, where the sender and the other participants read it, and it notifies whoever follows the document; it changes nothing about the document and does not move it on.
Once a document has run its course - completed, rejected, cancelled or expired - it takes no further comments unless the workspace allows them. The document’s permanent public link cannot comment at all; only a share issued to somebody can.
A document holds at most 250 comments - replies and deleted comments, which keep their place in its history, included.
Share authorization: Authorize using a share token and a one-time password (if required) to call this endpoint.
Allowed share object types: document
Allowed share purposes: view or edit or sign or execute or accept or approve or review
curl --request POST \
--url https://sandbox.circularo.com/api/v1/share/comment \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"commentAnchor": {
"page": 2,
"position": {
"percentHeight": 0.05,
"percentWidth": 0.3,
"percentX": 0.15,
"percentY": 0.3
}
},
"isPublicComment": false,
"threadParentId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/comment"
payload = {
"comment": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"commentAnchor": {
"page": 2,
"position": {
"percentHeight": 0.05,
"percentWidth": 0.3,
"percentX": 0.15,
"percentY": 0.3
}
},
"isPublicComment": False,
"threadParentId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"
}
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({
comment: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
commentAnchor: {
page: 2,
position: {percentHeight: 0.05, percentWidth: 0.3, percentX: 0.15, percentY: 0.3}
},
isPublicComment: false,
threadParentId: '9f1c4e2ab7d4423d8a6f0c5e3b7d1a92'
})
};
fetch('https://sandbox.circularo.com/api/v1/share/comment', 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/comment",
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([
'comment' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'commentAnchor' => [
'page' => 2,
'position' => [
'percentHeight' => 0.05,
'percentWidth' => 0.3,
'percentX' => 0.15,
'percentY' => 0.3
]
],
'isPublicComment' => false,
'threadParentId' => '9f1c4e2ab7d4423d8a6f0c5e3b7d1a92'
]),
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/comment"
payload := strings.NewReader("{\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"commentAnchor\": {\n \"page\": 2,\n \"position\": {\n \"percentHeight\": 0.05,\n \"percentWidth\": 0.3,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n }\n },\n \"isPublicComment\": false,\n \"threadParentId\": \"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92\"\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/comment")
.header("Content-Type", "application/json")
.body("{\n \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"commentAnchor\": {\n \"page\": 2,\n \"position\": {\n \"percentHeight\": 0.05,\n \"percentWidth\": 0.3,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n }\n },\n \"isPublicComment\": false,\n \"threadParentId\": \"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/comment")
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 \"comment\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"commentAnchor\": {\n \"page\": 2,\n \"position\": {\n \"percentHeight\": 0.05,\n \"percentWidth\": 0.3,\n \"percentX\": 0.15,\n \"percentY\": 0.3\n }\n },\n \"isPublicComment\": false,\n \"threadParentId\": \"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92\"\n}"
response = http.request(request)
puts response.read_body{
"historyId": "9f1c4e2ab7d4423d8a6f0c5e3b7d1a92",
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 428,
"type": "AUTH:MFA_REQUIRED",
"message": "MFA activation required",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 498,
"type": "SHARE_AUTH:TOKEN_INVALID",
"message": "Invalid share token",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Query Parameters
Body
Text to record on the document. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input. Must contain visible text. Users and documents mentioned in it are resolved, though a mention made here grants nobody access.
2000"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."