Fetch Task Queue Statistics

GET {{twilio_taskrouter}}/v1/Workspaces/:WorkspaceSid/TaskQueues/:TaskQueueSid/Statistics?EndDate=1956-08-01T14:29:18.583Z&Minutes=-70663051&StartDate=1956-08-01T14:29:18.583Z&TaskChannel=et ad si&SplitByWaitTime=et ad si

Request Params

KeyDatatypeRequiredDescription
EndDatestringOnly calculate statistics from this date and time and earlier, specified in GMT as an ISO 8601 date-time.
MinutesnumberOnly calculate statistics since this many minutes in the past. The default is 15 minutes.
StartDatestringOnly calculate statistics from this date and time and later, specified in ISO 8601 format.
TaskChannelstringOnly 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.
SplitByWaitTimestringA 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.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"account_sid":"ACA7B8a40fcaAc65dfe1c4DF40e8FD6225","cumulative":{},"realtime":{},"task_queue_sid":"WQa96C7eb8f44Bb3ff2BFacFce112cdF9C","workspace_sid":"WSF2aa4aA6c41cDc8dfaE9757b5F0328cB","url":"https://KNfCMhvdnZwUqCPdoxNYXOA.rmdXLTIAfUl8h0b90sme,82QMFKiYMjeRkM-+KmjjT1kwQihhcclJ+8E7R2kW6Cq+t"}