v50

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

get/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics

Path parameters

WorkspaceSidstring required

The SID of the Workspace with the TaskQueue to fetch.

TaskQueueSidstring required

The SID of the TaskQueue for which to fetch statistics.

Query parameters

TaskChannelstring

The TaskChannel for which to fetch statistics. 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 TaskQueue resource.

longest_task_waiting_ageinteger

The age of the longest waiting Task.

longest_task_waiting_sidstring nullable

The SID of the longest waiting Task.

longest_relative_task_age_in_queueinteger

The relative age in the TaskQueue for the longest waiting Task. Calculation is based on the time when the Task entered the TaskQueue.

longest_relative_task_sid_in_queuestring nullable

The Task SID of the Task waiting in the TaskQueue the longest. Calculation is based on the time when the Task entered the TaskQueue.

task_queue_sidstring nullable

The SID of the TaskQueue from which these statistics were calculated.

{"stackTrail":"components:schemas:taskrouter.v1.workspace.task_queue.task_queue_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.task_queue.task_queue_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_available_workersinteger

The total number of Workers in the TaskQueue with an available status. Workers with an available status may already have active interactions or may have none.

total_eligible_workersinteger

The total number of Workers eligible for Tasks in the TaskQueue, independent of their Activity state.

total_tasksinteger

The total number of Tasks.

workspace_sidstring nullable

The SID of the Workspace that contains the TaskQueue.

urlstring uri nullable

The absolute URL of the TaskQueue statistics resource.