# Fetch task queue real time statistics **GET /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics** ## Servers - https://taskrouter.twilio.com: https://taskrouter.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Path parameters - **WorkspaceSid** (string) The SID of the Workspace with the TaskQueue to fetch. - **TaskQueueSid** (string) The SID of the TaskQueue for which to fetch statistics. ### Query parameters - **TaskChannel** (string) The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. ## Responses ### 200 OK #### Headers - **X-Rate-Limit-Limit** (string) - **X-Rate-Limit-Remaining** (string) - **X-Rate-Limit-Config** (string) - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **account_sid** (string | null) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the TaskQueue resource. - **activity_statistics** (array | null) The number of current Workers by Activity. - **longest_task_waiting_age** (integer) The age of the longest waiting Task. - **longest_task_waiting_sid** (string | null) The SID of the longest waiting Task. - **longest_relative_task_age_in_queue** (integer) 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_queue** (string | null) 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_sid** (string | null) The SID of the TaskQueue from which these statistics were calculated. - **tasks_by_priority** () The number of Tasks by priority. For example: `{"0": "10", "99": "5"}` shows 10 Tasks at priority 0 and 5 at priority 99. - **tasks_by_status** () The number of Tasks by their current status. For example: `{"pending": "1", "reserved": "3", "assigned": "2", "completed": "5"}`. - **total_available_workers** (integer) 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_workers** (integer) The total number of Workers eligible for Tasks in the TaskQueue, independent of their Activity state. - **total_tasks** (integer) The total number of Tasks. - **workspace_sid** (string | null) The SID of the Workspace that contains the TaskQueue. - **url** (string(uri) | null) The absolute URL of the TaskQueue statistics resource. [Powered by Bump.sh](https://bump.sh)