curl --request GET \
--url https://sandbox.circularo.com/api/v1/share/action/possibleimport requests
url = "https://sandbox.circularo.com/api/v1/share/action/possible"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/share/action/possible', 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/action/possible",
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/action/possible"
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/action/possible")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/action/possible")
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{
"actions": [
{
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"archive": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"following": "<string>",
"groupFilter": "<string>",
"id": 5,
"important": false,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "create",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"revertSignatures": true,
"rights": "<string>",
"send": true,
"sentiment": "neutral",
"signAction": true,
"signFields": true,
"stateId": 0,
"transitionAction": "<string>",
"type": "action",
"userFilter": "<string>"
}
],
"automaticState": true,
"reworkStateId": 123
}{
"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": 428,
"type": "AUTH:MFA_REQUIRED",
"message": "MFA activation required",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 498,
"type": "SHARE_AUTH:TOKEN_INVALID",
"message": "Invalid share token",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Get the workflow moves offered to a share recipient
GET /share/action/possible
Returns what the shared document’s workflow offers from the state it currently sits in - the actions the recipient carries out themselves and the requests they raise for somebody else - together with the state a rework request would send the document back to.
This is what a recipient shared with for a workflow action builds their menu from; the chosen move is then performed through POST /share/execute. The list follows the document, so it changes as the document moves on, and a state the workflow advances by itself leaves nothing to choose from. For a recipient who is an internal user, moves their rights do not cover are left out.
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: execute
curl --request GET \
--url https://sandbox.circularo.com/api/v1/share/action/possibleimport requests
url = "https://sandbox.circularo.com/api/v1/share/action/possible"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/share/action/possible', 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/action/possible",
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/action/possible"
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/action/possible")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/share/action/possible")
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{
"actions": [
{
"allowedAddressingGroups": true,
"allowedAddressingUsers": true,
"allowedGroups": [
"Approvers"
],
"allowedUsers": [
"john.doe@example.com"
],
"allowExternal": true,
"archive": true,
"autoSign": true,
"commentForbidden": true,
"commentRequired": true,
"composeTemplate": [
"<string>"
],
"following": "<string>",
"groupFilter": "<string>",
"id": 5,
"important": false,
"isInitial": true,
"multipleReceivers": true,
"multipleSignFieldUsers": true,
"name": "create",
"nextState": 1,
"order": 123,
"predefinedReceiver": true,
"receiver": "john.doe@example.com",
"recipient": true,
"revertSignatures": true,
"rights": "<string>",
"send": true,
"sentiment": "neutral",
"signAction": true,
"signFields": true,
"stateId": 0,
"transitionAction": "<string>",
"type": "action",
"userFilter": "<string>"
}
],
"automaticState": true,
"reworkStateId": 123
}{
"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": 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
Response
Returns the moves available from the document's current workflow state.