Path parameters
-
The SID of the Workspace with the Task to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WS[0-9a-fA-F]{32}$
. -
The SID of the Task resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WT[0-9a-fA-F]{32}$
.
GET
/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}
curl \
--request GET 'https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}' \
--user "username:password"
Response examples (200)
{
"age": 25200,
"sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"workflow": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"workspace": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"task_queue": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/TaskQueues/WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"reservations": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations"
},
"addons": "{}",
"reason": "Test Reason",
"timeout": 60,
"priority": 0,
"attributes": "{\"body\": \"hello\"}",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2014-05-14T18:50:02Z",
"date_updated": "2014-05-15T07:26:06Z",
"workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"routing_target": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"task_queue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"ignore_capacity": false,
"task_channel_sid": "TCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"assignment_status": "pending",
"required_attention": 0,
"virtual_start_time": "2014-05-14T18:50:02Z",
"workflow_friendly_name": "Test Workflow",
"task_queue_entered_date": "2014-05-14T18:50:02Z",
"task_channel_unique_name": "task-channel",
"task_queue_friendly_name": "Test Queue"
}