Path parameters
-
The SID of the Workspace with the Workers to read.
Query parameters
-
ActivityName string
The
activity_name
of the Worker resources to read. -
ActivitySid string
The
activity_sid
of the Worker resources to read. -
Available string
Whether to return only Worker resources that are available or unavailable. Can be
true
,1
, oryes
to return Worker resources that are available, andfalse
, or any value returns the Worker resources that are not available. -
FriendlyName string
The
friendly_name
of the Worker resources to read. -
TargetWorkersExpression string
Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue.
-
TaskQueueName string
The
friendly_name
of the TaskQueue that the Workers to read are eligible for. -
TaskQueueSid string
The SID of the TaskQueue that the Workers to read are eligible for.
-
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
curl \
-X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers \
--user "username:password"
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"workers": [
{
"account_sid": "string",
"activity_name": "string",
"activity_sid": "string",
"attributes": "string",
"available": true,
"date_created": "2023-05-04T09:42:00+00:00",
"date_status_changed": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"links": {},
"sid": "string",
"url": "https://example.com",
"workspace_sid": "string"
}
]
}
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"workers": [
{
"account_sid": "string",
"activity_name": "string",
"activity_sid": "string",
"attributes": "string",
"available": true,
"date_created": "2024-05-04T09:42:00+00:00",
"date_status_changed": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"friendly_name": "string",
"links": {},
"sid": "string",
"url": "https://example.com",
"workspace_sid": "string"
}
]
}