curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token='import requests
url = "https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/share/{shareId}/validate?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/{shareId}/validate?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
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",
"fullname": "<string>",
"internalShare": true,
"isActive": true,
"isMandatory": true,
"isPermanentViewToken": true,
"itemIsEligible": 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,
"quorum": 123,
"returnUrl": "https://example.com/thank-you",
"rights": [
"print",
"delegate"
],
"sendAttachmentsOnComplete": true,
"shareDate": "2023-11-07T05:31:56Z",
"sharedBy": "<string>",
"sharedObjectEsId": "<string>",
"sharedObjectEsType": "<string>",
"sharedObjectType": "document",
"sharedWith": [
"<string>"
],
"shareGroup": "<string>",
"shareId": "5Ds8g5cB3a5JydtvXALu",
"shareToken": "cir_5Ds8g5cB3a5JydtvXALu.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0",
"shareType": "sign",
"termsAccepted": true,
"termsAcceptedOn": "2023-11-07T05:31:56Z",
"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"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 498,
"type": "SHARE_AUTH:TOKEN_INVALID",
"message": "Invalid share token",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Open a share by its identifier
GET /share/{shareId}/validate
Looks a share up by its identifier, checks that it is still live and that the caller may use it, and answers with the share together with the token every other share endpoint is called with.
Two people reach a share this way. The recipient, when the share was assigned to them as a user of this workspace, opens their own share - it is how the application moves from a notification to the document. The sender may do the same for a share they sent outside the workspace, where they hold the right to generate such tokens; the share then has to be guarded by a second factor, so that the token alone opens nothing, and the first time a token is taken out this way it is recorded on the share and in the audit log.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token='import requests
url = "https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/share/{shareId}/validate?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/{shareId}/validate?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/{shareId}/validate?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
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",
"fullname": "<string>",
"internalShare": true,
"isActive": true,
"isMandatory": true,
"isPermanentViewToken": true,
"itemIsEligible": 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,
"quorum": 123,
"returnUrl": "https://example.com/thank-you",
"rights": [
"print",
"delegate"
],
"sendAttachmentsOnComplete": true,
"shareDate": "2023-11-07T05:31:56Z",
"sharedBy": "<string>",
"sharedObjectEsId": "<string>",
"sharedObjectEsType": "<string>",
"sharedObjectType": "document",
"sharedWith": [
"<string>"
],
"shareGroup": "<string>",
"shareId": "5Ds8g5cB3a5JydtvXALu",
"shareToken": "cir_5Ds8g5cB3a5JydtvXALu.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0",
"shareType": "sign",
"termsAccepted": true,
"termsAcceptedOn": "2023-11-07T05:31:56Z",
"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"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 498,
"type": "SHARE_AUTH:TOKEN_INVALID",
"message": "Invalid share token",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Response
Returns the share, its token, and whether the action it asks for can still be carried out.
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.