Retrieve the actions available in a workflow state
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?token='import requests
url = "https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?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/definitions/possibleActions/{workflow}?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/definitions/possibleActions/{workflow}?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/definitions/possibleActions/{workflow}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?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{
"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"
}Definitions
Retrieve the actions available in a workflow state
GET /definitions/possibleActions/{workflow}
Returns the actions and requests a document sitting in a given state of a workflow can be moved by, filtered down to the ones this caller is actually entitled to perform. Use it to build the action menu a user is offered, rather than reading the whole definition and working out the transitions yourself.
The response also flags whether the state advances on its own, and names the state a rework would send the document back to.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: use_workflow
Retrieve the actions available in a workflow state
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?token='import requests
url = "https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?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/definitions/possibleActions/{workflow}?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/definitions/possibleActions/{workflow}?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/definitions/possibleActions/{workflow}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/definitions/possibleActions/{workflow}?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{
"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"
}Authorizations
Path Parameters
Query Parameters
Response
Returns the actions and requests available from that state to this caller.