v50

latestOpenAPI 3.0.1Apache 2.0raw.githubusercontent.com2026-02-056136556.2 KB
TaskrouterV1WorkspaceRealTimeStatistics

get/v1/Workspaces/{WorkspaceSid}/RealTimeStatistics

Path parameters

WorkspaceSidstring required

The SID of the Workspace to fetch.

Query parameters

TaskChannelstring

Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

Response

OK

account_sidstring nullable

The SID of the Account that created the Workspace resource.

longest_task_waiting_ageinteger

The age of the longest waiting Task.

longest_task_waiting_sidstring nullable

The SID of the longest waiting Task.

{"stackTrail":"components:schemas:taskrouter.v1.workspace.workspace_real_time_statistics:properties:tasks_by_priority","oasType":"schema","type":"unknown","description":"The number of Tasks by priority. For example: `{\"0\": \"10\", \"99\": \"5\"}` shows 10 Tasks at priority 0 and 5 at priority 99.","nullable":true}
{"stackTrail":"components:schemas:taskrouter.v1.workspace.workspace_real_time_statistics:properties:tasks_by_status","oasType":"schema","type":"unknown","description":"The number of Tasks by their current status. For example: `{\"pending\": \"1\", \"reserved\": \"3\", \"assigned\": \"2\", \"completed\": \"5\"}`.","nullable":true}
total_tasksinteger

The total number of Tasks.

total_workersinteger

The total number of Workers in the Workspace.

workspace_sidstring nullable

The SID of the Workspace.

urlstring uri nullable

The absolute URL of the Workspace statistics resource.