Skip to main content

Get Task Statistics

Use this API to retrieve task statistics for the current user.

Request URL: /openapi/v1/workflow/statistic

HTTP method: GET

Request parameters

ParameterTypeRequiredDescriptionExample
accountIdStringYesID of the user whose perspective is queried."1238779494193071"

Response parameters

ParameterTypeDescriptionExample
successBooleanWhether the request was successful.true
dataArrayTask statistics by task association type.N/A
accountTypeStringUser association type for the task:
  • submitter: Submitted by me
  • toApprove: Pending my approval
  • toExecute: Pending my execution
"submitter"
cntIntegerNumber of tasks.5
errorCodeStringError code.N/A
messageStringError message.N/A

Successful response example

{
"success": true,
"requestId": "Op6b0PXR-BHGBdNLnCBEe4ZEdGCh1DTP",
"data": [{
"accountType": "submitter",
"cnt": 143
}, {
"accountType": "toApprove",
"cnt": 8
}, {
"accountType": "toExecute",
"cnt": 8
}]
}