Fetch workflow real time statistics
Path parameters
-
The SID of the Workspace with the Workflow to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WS[0-9a-fA-F]{32}$
. -
Returns the list of Tasks that are being controlled by the Workflow with the specified SID value.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WW[0-9a-fA-F]{32}$
.
GET
/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics
curl \
--request GET 'https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics' \
--user "username:password"
Response examples (200)
{
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RealTimeStatistics",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"total_tasks": 100,
"workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"tasks_by_status": {
"pending": 0,
"assigned": 0,
"reserved": 0,
"wrapping": 0
},
"tasks_by_priority": {},
"longest_task_waiting_age": 100,
"longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}