List Task
GET {{twilio_taskrouter}}/v1/Workspaces/:WorkspaceSid/Tasks?Priority=-70663051&AssignmentStatus=do&AssignmentStatus=consectetur in&WorkflowSid=WW0c0ef297E50Be6ebf5289499fbE7fDFA&WorkflowName=et ad si&TaskQueueSid=WQ4A1f8Bcc18BebCc596Dc37ACCef0641F&TaskQueueName=et ad si&EvaluateTaskAttributes=et ad si&Ordering=et ad si&HasAddons=true&PageSize=153
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
Priority | number | The priority value of the Tasks to read. Returns the list of all Tasks in the Workspace with the specified priority. | |
AssignmentStatus | string | The assignment_status of the Tasks you want to read. Can be: pending , reserved , assigned , canceled , wrapping , or completed . Returns all Tasks in the Workspace with the specified assignment_status . | |
AssignmentStatus | string | The assignment_status of the Tasks you want to read. Can be: pending , reserved , assigned , canceled , wrapping , or completed . Returns all Tasks in the Workspace with the specified assignment_status . | |
WorkflowSid | string | The SID of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this SID. | |
WorkflowName | string | The friendly name of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this friendly name. | |
TaskQueueSid | string | The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID. | |
TaskQueueName | string | The friendly_name of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name. | |
EvaluateTaskAttributes | string | The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter. | |
Ordering | string | How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: Attribute:Order , where Attribute can be either Priority or DateCreated and Order can be either asc or desc . For example, Priority:desc returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as Priority:desc,DateCreated:asc , which returns the Tasks in descending Priority order and ascending DateCreated Order. | |
HasAddons | boolean | Whether to read Tasks with addons. If true , returns only Tasks with addons. If false , returns only Tasks without addons. | |
PageSize | number | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"tasks":[{"account_sid":"AC7dC5EDA27f0eCc51bEafF277620E0aBF","age":-1908106,"assignment_status":"assigned","attributes":"et laboris veniam mol","addons":"commodo amet pariatur tempor","date_created":"2020-04-17T10:21:39.714Z","date_updated":"2022-10-28T04:30:15.768Z","task_queue_entered_date":"1950-04-15T20:13:52.371Z","priority":-78193150,"reason":"consectetur sint in","sid":"WT4AdD26F2E7f156B66b7Fb400B0d4EAbC","task_queue_sid":"WQe7befbcDe7d178c16576CFd03AfDEF3d","task_queue_friendly_name":"voluptate","task_channel_sid":"TCDF2c31f2581a800B0A986f083edEb4dd","task_channel_unique_name":"Ut cillum","timeout":-35279658,"workflow_sid":"WWaaEa82aBeac29a8CdF69Ea46c41D92Fc","workflow_friendly_name":"qui minim enim reprehenderit cupidatat","workspace_sid":"WS8b4eeAF55dCE85a91c88626B700Fb356","url":"https://POaUCrYdjfWYffYQCbSOaiU.xbnqMSn,4zRUYnYDFCRuOx5wCZ.hz-+dABGgtC6ZqWeTnwR-56WA","links":{}},{"account_sid":"AC77c8AffECC4A975FA0D1e63F9befDb0f","age":17399378,"assignment_status":"completed","attributes":"consequat ex elit es","addons":"et proid","date_created":"2012-04-01T01:31:56.151Z","date_updated":"1991-02-19T21:17:36.265Z","task_queue_entered_date":"2001-02-04T08:39:34.103Z","priority":-18686851,"reason":"aute ","sid":"WT5F1C13dA8C0fC53917Ed13d9F40d3fC5","task_queue_sid":"WQa2c4a0617826CbaceeFf33BFfEe6b21C","task_queue_friendly_name":"aliqua consequat","task_channel_sid":"TC34a9Fd62cFeb6BC34197AD74adB2bcEC","task_channel_unique_name":"mollit quis et","timeout":20810680,"workflow_sid":"WWFe0aE59FBB5A8C12aeDD1C5DDb2ADfD8","workflow_friendly_name":"eiusmod aliquip do","workspace_sid":"WScfb507056FFFf457E7eDeCB1DB66b1cF","url":"http://QKCOaEwJ.nenyxSt228HYWL4hztA-tXxHBGnUaerQ7O7QuGYG","links":{}}],"meta":{"first_page_url":"https://lsvpzEB.gamVfcPa2XqaI9l0F1rZtj4,e5JB8jKUKYF6ftjvOCU7htsLxwQzEQSCZ+","next_page_url":"https://ZMjqVcHflbpkZlQCDBUxWrhbWYBIiWEY.fhbPuGU,y6ONVp","page":73212002,"page_size":-3876726,"previous_page_url":"http://YyJvcluKacYyxmGGLOSeFGrqaapEnd.eaMIsEeAUqYtXUDNhnPGk+J7QqJUGHgbJCtu","url":"http://DcdUxLziPQSXmSJWLGkFItjhWVY.tlqeHADrbB-vyt7XRKOaxPrz.XwN0oDhiwfHRNfgbwBNy7Madt7PdhiJk6KCvZIM11,Rqu","key":"eiusmod amet adipisicing dolor"}}