v50

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

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

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

EndDatestring date-time

Only calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.

Minutesinteger

Only calculate statistics since this many minutes in the past. The default is 15 minutes.

StartDatestring date-time

Only calculate statistics from this date and time and later, specified in ISO 8601 format.

TaskChannelstring

Only calculate real-time and cumulative statistics for the specified TaskChannel. Can be the TaskChannel's SID or its unique_name, such as voice, sms, or default.

SplitByWaitTimestring

A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed.

Response

OK

account_sidstring nullable

The SID of the Account that created the TaskQueue resource.

{"stackTrail":"components:schemas:taskrouter.v1.workspace.task_queue.task_queue_statistics:properties:cumulative","oasType":"schema","type":"unknown","description":"An object that contains the cumulative statistics for the TaskQueue.","nullable":true}
{"stackTrail":"components:schemas:taskrouter.v1.workspace.task_queue.task_queue_statistics:properties:realtime","oasType":"schema","type":"unknown","description":"An object that contains the real-time statistics for the TaskQueue.","nullable":true}
task_queue_sidstring nullable

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

workspace_sidstring nullable

The SID of the Workspace that contains the TaskQueue.

urlstring uri nullable

The absolute URL of the TaskQueue statistics resource.