Fetch workers real time statistics

GET /v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics

TODO: Resource-level docs

Path parameters

  • WorkspaceSid string Required

    The SID of the Workspace with the resource to fetch.

Query parameters

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

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • The number of current Workers by Activity

    • total_workers integer | null

      The total number of Workers

    • url string(uri) | null

      The absolute URL of the Workers statistics resource

    • workspace_sid string | null

      The SID of the Workspace that contains the Workers

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^WS[0-9a-fA-F]{32}$.

GET /v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics
curl \
 -X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "activity_statistics": [],
  "total_workers": 42,
  "url": "https://example.com",
  "workspace_sid": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "activity_statistics": [],
  "total_workers": 42,
  "url": "https://example.com",
  "workspace_sid": "string"
}