curl --request PUT \
--url https://sandbox.circularo.com/api/v1/share/delegate \
--header 'Content-Type: application/json' \
--data '
{
"delegateTo": "john.doe+member@example.com",
"fullname": "John Doe",
"isPublicComment": false,
"mail": "jane.doe+2024@example.com",
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"phone": "+493012345678"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/delegate"
payload = {
"delegateTo": "john.doe+member@example.com",
"fullname": "John Doe",
"isPublicComment": False,
"mail": "jane.doe+2024@example.com",
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"phone": "+493012345678"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
delegateTo: 'john.doe+member@example.com',
fullname: 'John Doe',
isPublicComment: false,
mail: 'jane.doe+2024@example.com',
message: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
nafathId: '<string>',
oauthFactors: [{type: 'email', value: 'john.doe@example.com'}],
phone: '+493012345678'
})
};
fetch('https://sandbox.circularo.com/api/v1/share/delegate', 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/delegate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'delegateTo' => 'john.doe+member@example.com',
'fullname' => 'John Doe',
'isPublicComment' => false,
'mail' => 'jane.doe+2024@example.com',
'message' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'nafathId' => '<string>',
'oauthFactors' => [
[
'type' => 'email',
'value' => 'john.doe@example.com'
]
],
'phone' => '+493012345678'
]),
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/delegate"
payload := strings.NewReader("{\n \"delegateTo\": \"john.doe+member@example.com\",\n \"fullname\": \"John Doe\",\n \"isPublicComment\": false,\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"phone\": \"+493012345678\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.circularo.com/api/v1/share/delegate")
.header("Content-Type", "application/json")
.body("{\n \"delegateTo\": \"john.doe+member@example.com\",\n \"fullname\": \"John Doe\",\n \"isPublicComment\": false,\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"phone\": \"+493012345678\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/delegate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"delegateTo\": \"john.doe+member@example.com\",\n \"fullname\": \"John Doe\",\n \"isPublicComment\": false,\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"phone\": \"+493012345678\"\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": 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"
}Hand a share over to somebody else
PUT /share/delegate
Passes what was asked of the recipient on to another person. A new share is issued to them carrying everything the original asked for - what is to be done, what it allows, the turn it holds in the order and when it runs out - and the document waits for them from then on. The recipient handing over keeps the document to read but is no longer expected to act, and the draft they had started is thrown away.
How the new recipient’s access is guarded follows the original share. Somebody with an account in this workspace signs in and any protection is dropped; somebody without one has the same kind of protection set up afresh, which is why a share guarded by a one-time code needs a new address or number to send it to, and one guarded by the national digital identity needs the new person’s. A share guarded by a password agreed in advance passes that password on unchanged. A share guarded by an identity verification keeps the check, but drops the identity details recorded about the previous recipient - the person handing over cannot give the new person’s, so the document the new recipient verifies with is matched against none.
Everybody concerned is told - the new recipient, the person handing over, and whoever sent the document out. Hand-overs are followed as a chain, and there is a limit to how far one may run. A recipient may not hand the document to themselves, nor to somebody whose own forwarding arrangements would send it straight back to them.
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: edit or sign or accept or approve or review
curl --request PUT \
--url https://sandbox.circularo.com/api/v1/share/delegate \
--header 'Content-Type: application/json' \
--data '
{
"delegateTo": "john.doe+member@example.com",
"fullname": "John Doe",
"isPublicComment": false,
"mail": "jane.doe+2024@example.com",
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"phone": "+493012345678"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/delegate"
payload = {
"delegateTo": "john.doe+member@example.com",
"fullname": "John Doe",
"isPublicComment": False,
"mail": "jane.doe+2024@example.com",
"message": "Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>.",
"nafathId": "<string>",
"oauthFactors": [
{
"type": "email",
"value": "john.doe@example.com"
}
],
"phone": "+493012345678"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
delegateTo: 'john.doe+member@example.com',
fullname: 'John Doe',
isPublicComment: false,
mail: 'jane.doe+2024@example.com',
message: 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
nafathId: '<string>',
oauthFactors: [{type: 'email', value: 'john.doe@example.com'}],
phone: '+493012345678'
})
};
fetch('https://sandbox.circularo.com/api/v1/share/delegate', 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/delegate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'delegateTo' => 'john.doe+member@example.com',
'fullname' => 'John Doe',
'isPublicComment' => false,
'mail' => 'jane.doe+2024@example.com',
'message' => 'Processed <b>as requested</b>, see <a href="https://example.com/report">the report</a>.',
'nafathId' => '<string>',
'oauthFactors' => [
[
'type' => 'email',
'value' => 'john.doe@example.com'
]
],
'phone' => '+493012345678'
]),
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/delegate"
payload := strings.NewReader("{\n \"delegateTo\": \"john.doe+member@example.com\",\n \"fullname\": \"John Doe\",\n \"isPublicComment\": false,\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"phone\": \"+493012345678\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://sandbox.circularo.com/api/v1/share/delegate")
.header("Content-Type", "application/json")
.body("{\n \"delegateTo\": \"john.doe+member@example.com\",\n \"fullname\": \"John Doe\",\n \"isPublicComment\": false,\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"phone\": \"+493012345678\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/delegate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"delegateTo\": \"john.doe+member@example.com\",\n \"fullname\": \"John Doe\",\n \"isPublicComment\": false,\n \"mail\": \"jane.doe+2024@example.com\",\n \"message\": \"Processed <b>as requested</b>, see <a href=\\\"https://example.com/report\\\">the report</a>.\",\n \"nafathId\": \"<string>\",\n \"oauthFactors\": [\n {\n \"type\": \"email\",\n \"value\": \"john.doe@example.com\"\n }\n ],\n \"phone\": \"+493012345678\"\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": 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
Full name of the new recipient. Used for external recipients only — it is stored on the delegated share and pre-filled in the signature field / notifications. Ignored for internal recipients (their profile name is used). If omitted for an external recipient, the name is taken from the delegator's contact list when a matching contact exists; the original recipient's name is never carried over.
255"John Doe"
Note the delegating recipient leaves with the hand-over, recorded on the document and delivered to the person taking it on. 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>."