Worker Channels show the Worker's capacity for handling multiple concurrent Tasks. Workers receive Task reservation requests in parallel for each task type until the configured Task Channel capacity is reached. In addition, Worker Channels can also be marked as unavailable, which is useful for temporarily removing the capacity for a given Worker Channel and then restoring to the previous capacity when marking available again.
account_sid
type: SID<AC>The SID of the Account that created the Worker resource.
^AC[0-9a-fA-F]{32}$
34
34
assigned_tasks
type: integerThe total number of Tasks assigned to Worker for the TaskChannel type.
available_capacity_percentage
type: integerThe current percentage of capacity the TaskChannel has available. Can be a number between 0
and 100
. A value of 0
indicates that TaskChannel has no capacity available and a value of 100
means the Worker is available to receive any Tasks of this TaskChannel type.
configured_capacity
type: integerThe current configured capacity for the WorkerChannel. TaskRouter will not create any reservations after the assigned Tasks for the Worker reaches the value.
date_created
type: string<date-time>The date and time in GMT when the resource was created specified in RFC 2822 format.
date_updated
type: string<date-time>The date and time in GMT when the resource was last updated specified in RFC 2822 format.
sid
type: SID<WC>The unique string that we created to identify the WorkerChannel resource.
^WC[0-9a-fA-F]{32}$
34
34
task_channel_sid
type: SID<TC>The SID of the TaskChannel.
^TC[0-9a-fA-F]{32}$
34
34
task_channel_unique_name
type: stringThe unique name of the TaskChannel, such as voice
or sms
.
worker_sid
type: SID<WK>The SID of the Worker that contains the WorkerChannel.
^WK[0-9a-fA-F]{32}$
34
34
workspace_sid
type: SID<WS>The SID of the Workspace that contains the WorkerChannel.
^WS[0-9a-fA-F]{32}$
34
34
GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}
Returns a single Worker Channel resource identified by either WorkerChannelUniqueName
or WorkerChannelSid
WorkspaceSid
type: SID<WS>The SID of the Workspace with the WorkerChannel to fetch.
^WS[0-9a-fA-F]{32}$
34
34
WorkerSid
type: SID<WK>The SID of the Worker with the WorkerChannel to fetch.
^WK[0-9a-fA-F]{32}$
34
34
GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels
WorkspaceSid
type: SID<WS>The SID of the Workspace with the WorkerChannels to read.
^WS[0-9a-fA-F]{32}$
34
34
WorkerSid
type: SID<WK>The SID of the Worker with the WorkerChannels to read.
^WK[0-9a-fA-F]{32}$
34
34
PageSize
type: integerHow many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Page
type: integerThe page index. This value is simply for client state.
0
POST https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}
WorkspaceSid
type: SID<WS>The SID of the Workspace with the WorkerChannel to update.
^WS[0-9a-fA-F]{32}$
34
34
WorkerSid
type: SID<WK>The SID of the Worker with the WorkerChannel to update.
^WK[0-9a-fA-F]{32}$
34
34
Capacity
type: integerThe total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created.
Available
type: booleanWhether the WorkerChannel is available. Set to false
to prevent the Worker from receiving any new Tasks of this TaskChannel type.