curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/share/search?token=' \
--header 'Content-Type: application/json' \
--data '
{
"from": 0,
"isActive": true,
"onlyCurrentlyValid": true,
"sharedBy": "john.doe+member@example.com",
"sharedObjectEsId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"sharedObjectEsType": "d_default",
"sharedObjectType": "document",
"sharedWith": "jsmith@example.com",
"showPermanentTokens": true,
"size": 10
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/search?token="
payload = {
"from": 0,
"isActive": True,
"onlyCurrentlyValid": True,
"sharedBy": "john.doe+member@example.com",
"sharedObjectEsId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"sharedObjectEsType": "d_default",
"sharedObjectType": "document",
"sharedWith": "jsmith@example.com",
"showPermanentTokens": True,
"size": 10
}
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({
from: 0,
isActive: true,
onlyCurrentlyValid: true,
sharedBy: 'john.doe+member@example.com',
sharedObjectEsId: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
sharedObjectEsType: 'd_default',
sharedObjectType: 'document',
sharedWith: 'jsmith@example.com',
showPermanentTokens: true,
size: 10
})
};
fetch('https://sandbox.circularo.com/api/v1/share/search?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/search?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([
'from' => 0,
'isActive' => true,
'onlyCurrentlyValid' => true,
'sharedBy' => 'john.doe+member@example.com',
'sharedObjectEsId' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'sharedObjectEsType' => 'd_default',
'sharedObjectType' => 'document',
'sharedWith' => 'jsmith@example.com',
'showPermanentTokens' => true,
'size' => 10
]),
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/search?token="
payload := strings.NewReader("{\n \"from\": 0,\n \"isActive\": true,\n \"onlyCurrentlyValid\": true,\n \"sharedBy\": \"john.doe+member@example.com\",\n \"sharedObjectEsId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"sharedObjectEsType\": \"d_default\",\n \"sharedObjectType\": \"document\",\n \"sharedWith\": \"jsmith@example.com\",\n \"showPermanentTokens\": true,\n \"size\": 10\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/search?token=")
.header("Content-Type", "application/json")
.body("{\n \"from\": 0,\n \"isActive\": true,\n \"onlyCurrentlyValid\": true,\n \"sharedBy\": \"john.doe+member@example.com\",\n \"sharedObjectEsId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"sharedObjectEsType\": \"d_default\",\n \"sharedObjectType\": \"document\",\n \"sharedWith\": \"jsmith@example.com\",\n \"showPermanentTokens\": true,\n \"size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/search?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 \"from\": 0,\n \"isActive\": true,\n \"onlyCurrentlyValid\": true,\n \"sharedBy\": \"john.doe+member@example.com\",\n \"sharedObjectEsId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"sharedObjectEsType\": \"d_default\",\n \"sharedObjectType\": \"document\",\n \"sharedWith\": \"jsmith@example.com\",\n \"showPermanentTokens\": true,\n \"size\": 10\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": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Search the shares of the workspace
POST /share/search
Finds shares matching the filters given - most often the shares of one document, to show who it went to, what was asked of them and how far each of them has got.
At least one filter has to be named. Only shares of documents the caller may read are answered, and that is decided after the page has been cut, so a page may come back holding fewer records than were asked for; ask for the next page rather than reading anything into the count.
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/search?token=' \
--header 'Content-Type: application/json' \
--data '
{
"from": 0,
"isActive": true,
"onlyCurrentlyValid": true,
"sharedBy": "john.doe+member@example.com",
"sharedObjectEsId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"sharedObjectEsType": "d_default",
"sharedObjectType": "document",
"sharedWith": "jsmith@example.com",
"showPermanentTokens": true,
"size": 10
}
'import requests
url = "https://sandbox.circularo.com/api/v1/share/search?token="
payload = {
"from": 0,
"isActive": True,
"onlyCurrentlyValid": True,
"sharedBy": "john.doe+member@example.com",
"sharedObjectEsId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"sharedObjectEsType": "d_default",
"sharedObjectType": "document",
"sharedWith": "jsmith@example.com",
"showPermanentTokens": True,
"size": 10
}
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({
from: 0,
isActive: true,
onlyCurrentlyValid: true,
sharedBy: 'john.doe+member@example.com',
sharedObjectEsId: 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
sharedObjectEsType: 'd_default',
sharedObjectType: 'document',
sharedWith: 'jsmith@example.com',
showPermanentTokens: true,
size: 10
})
};
fetch('https://sandbox.circularo.com/api/v1/share/search?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/search?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([
'from' => 0,
'isActive' => true,
'onlyCurrentlyValid' => true,
'sharedBy' => 'john.doe+member@example.com',
'sharedObjectEsId' => 'a0d01c9d-f72f-4c57-af11-e26bda19cc59',
'sharedObjectEsType' => 'd_default',
'sharedObjectType' => 'document',
'sharedWith' => 'jsmith@example.com',
'showPermanentTokens' => true,
'size' => 10
]),
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/search?token="
payload := strings.NewReader("{\n \"from\": 0,\n \"isActive\": true,\n \"onlyCurrentlyValid\": true,\n \"sharedBy\": \"john.doe+member@example.com\",\n \"sharedObjectEsId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"sharedObjectEsType\": \"d_default\",\n \"sharedObjectType\": \"document\",\n \"sharedWith\": \"jsmith@example.com\",\n \"showPermanentTokens\": true,\n \"size\": 10\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/search?token=")
.header("Content-Type", "application/json")
.body("{\n \"from\": 0,\n \"isActive\": true,\n \"onlyCurrentlyValid\": true,\n \"sharedBy\": \"john.doe+member@example.com\",\n \"sharedObjectEsId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"sharedObjectEsType\": \"d_default\",\n \"sharedObjectType\": \"document\",\n \"sharedWith\": \"jsmith@example.com\",\n \"showPermanentTokens\": true,\n \"size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/search?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 \"from\": 0,\n \"isActive\": true,\n \"onlyCurrentlyValid\": true,\n \"sharedBy\": \"john.doe+member@example.com\",\n \"sharedObjectEsId\": \"a0d01c9d-f72f-4c57-af11-e26bda19cc59\",\n \"sharedObjectEsType\": \"d_default\",\n \"sharedObjectType\": \"document\",\n \"sharedWith\": \"jsmith@example.com\",\n \"showPermanentTokens\": true,\n \"size\": 10\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": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Narrows the answer to the shares that would open right now - still live and not past their end. Naming it at all narrows the answer, whichever way it is set. At least one of isActive, shareType, sharedBy, sharedObjectType, sharedObjectEsId, sharedObjectEsType, sharedWith and onlyCurrentlyValid must be provided.
Identifier of the shared document - the usual way to ask who one document went to. At least one of isActive, shareType, sharedBy, sharedObjectType, sharedObjectEsId, sharedObjectEsType, sharedWith and onlyCurrentlyValid must be provided.
"a0d01c9d-f72f-4c57-af11-e26bda19cc59"
What the recipients were asked to do with the document. At least one of isActive, shareType, sharedBy, sharedObjectType, sharedObjectEsId, sharedObjectEsType, sharedWith and onlyCurrentlyValid must be provided.
view, edit, sign, execute, approve, review, accept Response
Returns the matching shares the caller may see.
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.