Skip to main content

Find Approvals

Search for approvals for the user specified by the token. Various input parameters (noted below) may be used to narrow the search. The values are expected to be all lower-case.

GET https://instance.securid.com/aveksa/command.submit?cmd=findApprovals

Request

Parameters

findApprovals
formatproperties - (Default) key=value. most useful when requesting a single object. If multiple objects are returned, values is a csv. ie key=value1,value2,value3 where value1 is the value for the first object, value2 is the value for the 2nd object, etc.

json - Useful format for parsing into javascript or other languages. See www.json.org for details.
approval-idId of the approval
business-sourceBusiness source of the request.
completed-afterLower bound for the "completed on" date search. The format is dd-mmm-yyyy, for example 01-jan-2020.
completed-beforeUpper bound for the "completed on" date search. The format is dd-mmm-yyyy, for example 31-dec-2023.
due-afterLower bound for the "due by" date search. The format is dd-mmm-yyyy, for example 01-jan-2020.
due-beforeUpper bound for the "due by" date search. The format is dd-mmm-yyyy, for example 31-dec-2023.
entitlement-nameName of the entitlement in the request.
entitlement-typeType of the entitlement in the request.
page-sizeThe number of approvals per page. (Default 20)
requested-afterLower bound for the "requested on" date search. The format is dd-mmm-yyyy, for example 01-jan-2020.
requested-beforeUpper bound for the "requested on" date search. The format is dd-mmm-yyyy, for example 31-dec-2023.
sortSort the approvals by due date (asc | desc). (Default asc)
start-pageThe starting page number. Defaults to 1 (which is the first page)
stateThe state of the approvals to retrieve (pending | completed | all). (Default pending)
user-first-nameFirst name of the user who placed the request.
user-idId of the user who placed the request.
user-idId of the user who placed the request.
user-last-nameLast name of the user who placed the request.

Headers

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Response

Parameters

The command returns detailed information about the approval in XML format.

Examples

Request

curl -K -X GET  \
"https://instance.securid.com/aveksa/command.submit?cmd=findApprovals&format=json" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"

Response

{
"findApprovals": {
"Approval": {
"WorkItemName": "Asset Business Owner Approval",
"WorkItemId": "3377:WPDS:1",
"RequestName": "UAR-5",
"WorkItemCompletedDate": "",
"WorkItemDueDate": "2024-01-22 17:00:00.0"
},
"NumApprovals": 1
}
}