TaskrouterTask Channel
Create Task Channel
Authorization
accountSid_authToken AuthorizationBasic <token>
In: header
Path Parameters
WorkspaceSid*string
The SID of the Workspace that the new Task Channel belongs to.
Match
^WS[0-9a-fA-F]{32}$Length
34 <= length <= 34Request Body
application/x-www-form-urlencoded
FriendlyName*string
A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long.
UniqueName*string
An application-defined string that uniquely identifies the Task Channel, such as voice or sms.
ChannelOptimizedRouting?boolean
Whether the Task Channel should prioritize Workers that have been idle. If true, Workers that have been idle the longest are prioritized.
Response Body
application/json
curl -X POST "https://example.com/v1/Workspaces/stringstringstringstringstringstri/TaskChannels" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'FriendlyName=Outbound+Voice&UniqueName=ovoice'{ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "TCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "Outbound Voice", "unique_name": "ovoice", "date_created": "2016-04-14T17:35:54Z", "date_updated": "2016-04-14T17:35:54Z", "channel_optimized_routing": true, "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskChannels/TCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "links": { "workspace": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }}