curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/documents/notify/owner?token=' \
--header 'Content-Type: application/json' \
--data '
{
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"name": "<string>",
"replyTo": "jane.doe+2024@example.com"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/documents/notify/owner?token="
payload = {
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"name": "<string>",
"replyTo": "jane.doe+2024@example.com"
}
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({
message: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
name: '<string>',
replyTo: 'jane.doe+2024@example.com'
})
};
fetch('https://sandbox.circularo.com/api/v1/documents/notify/owner?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/documents/notify/owner?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([
'message' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'name' => '<string>',
'replyTo' => 'jane.doe+2024@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/documents/notify/owner?token="
payload := strings.NewReader("{\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"name\": \"<string>\",\n \"replyTo\": \"jane.doe+2024@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/documents/notify/owner?token=")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"name\": \"<string>\",\n \"replyTo\": \"jane.doe+2024@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/documents/notify/owner?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 \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"name\": \"<string>\",\n \"replyTo\": \"jane.doe+2024@example.com\"\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": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Contact the owner of a document
POST /documents/notify/owner
Delivers a message to the owner of a document without revealing their address to the sender - the owner gets it on the channels they have enabled, carrying a reply-to address so they can answer directly.
The document is named either by documentId or by a share token, and the endpoint works for a caller who is not signed in at all: a recipient who was sent nothing but a link can raise a question about it. Such a caller supplies their own name and reply address in the body, and passes the reCAPTCHA challenge where the instance has one configured; an authenticated caller is identified from their profile instead.
Token or reCAPTCHA authorization: Authorize using a token, or a reCAPTCHA response when reCAPTCHA is enabled, to call this endpoint.
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/documents/notify/owner?token=' \
--header 'Content-Type: application/json' \
--data '
{
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"name": "<string>",
"replyTo": "jane.doe+2024@example.com"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/documents/notify/owner?token="
payload = {
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"name": "<string>",
"replyTo": "jane.doe+2024@example.com"
}
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({
message: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
name: '<string>',
replyTo: 'jane.doe+2024@example.com'
})
};
fetch('https://sandbox.circularo.com/api/v1/documents/notify/owner?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/documents/notify/owner?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([
'message' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'name' => '<string>',
'replyTo' => 'jane.doe+2024@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/documents/notify/owner?token="
payload := strings.NewReader("{\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"name\": \"<string>\",\n \"replyTo\": \"jane.doe+2024@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/documents/notify/owner?token=")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"name\": \"<string>\",\n \"replyTo\": \"jane.doe+2024@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/documents/notify/owner?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 \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"name\": \"<string>\",\n \"replyTo\": \"jane.doe+2024@example.com\"\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": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Query Parameters
Share the message is sent about; the document is taken from the share. This is the way a recipient who has only been given a link reaches the owner. Exactly one of documentId and shareToken must be provided.
^[A-Za-z0-9._-]+$"cir_82c5fa30d26bc.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"
Body
Text delivered to the owner. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input. Must contain visible text.
2000"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."