curl --request GET \
--url https://sandbox.circularo.com/api/v1/share/validateimport requests
url = "https://sandbox.circularo.com/api/v1/share/validate"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/share/validate', 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/validate",
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/validate"
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/validate")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/validate")
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": 498,
"type": "SHARE_AUTH:TOKEN_INVALID",
"message": "Invalid share token",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Read a share token
GET /share/validate
Reads the token from a share link and answers with what the recipient’s client needs before it shows anything: what was shared and what is being asked of the recipient, how the share is guarded, what the sender wrote, and whether the action can still be carried out at all.
This is the opening call of every share session and needs no account - the token is the credential. A share that is unknown, expired or deactivated is turned away here rather than further in. A share assigned to a user of this workspace is answered as well, and says so, so that the client can send that person through the ordinary sign-in instead of the recipient’s view.
No authorization: No authorization is required to call this endpoint.
curl --request GET \
--url https://sandbox.circularo.com/api/v1/share/validateimport requests
url = "https://sandbox.circularo.com/api/v1/share/validate"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/share/validate', 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/validate",
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/validate"
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/validate")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/validate")
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": 498,
"type": "SHARE_AUTH:TOKEN_INVALID",
"message": "Invalid share token",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Query Parameters
Response
Returns the share, 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.