Task Queue
com.twilio.taskrouter.task-queue.created
Info
The worker_time_in_previous_activity
field began reporting in seconds starting May 21, 2021. Version 2 of the TaskRouter schema added a new worker_time_in_previous_activity_ms
field that was not exposed through Event Streams previously. If you want to measure this field in milliseconds, you must use schema version 2.
Task Queue Created events are compatible with Webhook and Kinesis sinks. To learn more, you can get started with the Webhook or Kinesis quickstarts and refer to the product documentation.
Examples
1{2"specversion" : "1.0",3"type" : "com.twilio.taskrouter.task-queue.created",4"source" : "AB00000000000000000000000001",5"id" : "NO00000000000000000000000001",6"dataschema" : "https://events-schemas.twilio.com/TaskRouter.WDSEvent/4",7"datacontenttype" : "2025-10-08T07:17:02.363Z",8"data" : {9"sid" : "EV0000000000000000000000000000001",10"name" : "ReservationCreated",11"account_sid" : "AC0000000000000000000000000000001",12"account_friendly_name" : "An account name",13"parent_account_sid" : "AC0000000000000000000000000000001",14"parent_friendly_name" : "Another account name",15"timestamp" : "2025-01-01T00:00:00.000Z",16"level" : "INFO",17"group" : "reservation",18"product_name" : "TaskRouter",19"publisher" : "Flex Task Assignment",20"publisher_metadata" : "{}",21"payload_type" : "application/json",22"payload" : {23"sid" : "EV0000000000000000000000000000001",24"eventtype" : "reservation.created",25"account_sid" : "AC0000000000000000000000000000001",26"timestamp" : "2025-01-01T00:00:00.000Z",27"workspace_sid" : "WS0000000000000000000000000000001",28"workspace_name" : "Flex Task Assignment",29"task_sid" : "WT0000000000000000000000000000001",30"task_attributes" : "{}",31"task_age" : 31088,32"task_date_created" : "2025-01-01T00:00:00.000Z",33"task_priority" : 1,34"task_assignment_status" : "reserved",35"task_completed_reason" : "All reservations were completed",36"task_canceled_reason" : "hangup",37"reason" : "hangup",38"task_channel_sid" : "TC0000000000000000000000000000001",39"task_channel_unique_name" : "chat",40"reservation_sid" : "WR0000000000000000000000000000001",41"worker_sid" : "WK0000000000000000000000000000001",42"worker_name" : "Flex Task Assignment",43"worker_attributes" : "{}",44"worker_activity_sid" : "WA0000000000000000000000000000001",45"worker_activity_name" : "handling 2",46"worker_time_in_previous_activity" : 322,47"worker_time_in_previous_activity_ms" : 322859,48"worker_previous_activity_sid" : "WA0000000000000000000000000000002",49"worker_previous_activity_name" : "handling 1",50"workflow_sid" : "WW0000000000000000000000000000002",51"workflow_name" : "My workflow",52"task_queue_sid" : "WQ0000000000000000000000000000002",53"task_queue_name" : "My task queue",54"worker_channel_available" : 1,55"worker_channel_capacity" : 1,56"worker_channel_available_capacity" : 100.0,57"worker_channel_previous_capacity" : 6.0,58"worker_channel_task_count" : 0,59"workflow_filter_name" : "My workflow filter name",60"workflow_filter_expression" : "1==1",61"workflow_filter_target_expression" : "worker.channel.chat.assigned_tasks <= 1",62"workflow_filter_target_name" : "My workflow filter target name",63"previous_task_queue_sid" : "WQ0000000000000000000000000000001",64"previous_task_queue_name" : "My previous task queue name",65"previous_task_priority" : 3,66"target_changed_reason" : "skipped",67"task_re_evaluated_reason" : "reservation_timeout",68"task_queue_target_expression" : "allowed_channels HAS \"chat\"",69"task_transfer_sid" : "TT0000000000000000000000000000001",70"transfer_type" : "QUEUE",71"transfer_initiating_worker_sid" : "WK0000000000000000000000000000001",72"transfer_initiating_reservation_sid" : "WR0000000000000000000000000000001",73"transfer_to" : "WQ0000000000000000000000000000001",74"transfer_mode" : "COLD",75"transfer_started" : "2025-01-01T00:00:00.000Z",76"transfer_failed_reason" : "",77"transfer_status" : "complete",78"event_description" : "Reservation WR0000000000000000000000000000001 created",79"resource_type" : "reservation",80"resource_sid" : "WR0000000000000000000000000000001",81"task_routing_target" : "WK0000000000000000000000000000001",82"reservation_reason_code" : 45302,83"task_age_in_queue" : 31086,84"task_queue_entered_date" : "2025-01-01T00:00:00.000Z",85"task_version" : 4,86"reservation_version" : 0,87"task_virtual_start_time" : "2025-01-01T00:00:00.000Z",88"worker_channel_consumed_capacity" : 2,89"worker_version" : 4019,90"task_channel_name" : "My task channel name",91"task_channel_optimized_routing" : false,92"known_worker_sid" : "WK0000000000000000000000000000001",93"activity_sid" : "WA0000000000000000000000000000001",94"activity_name" : "My activity name",95"activity_available" : true,96"operating_unit_sid" : "OU0000000000000000000000000000001",97"operating_unit_friendly_name" : "My operating unit",98"operating_unit_date_created" : "2025-01-01T00:00:00.000Z",99"operating_unit_date_updated" : "2025-01-01T00:00:00.000Z",100"task_add_on_attributes" : "{}",101"task_timeout" : 86400,102"worker_available" : true,103"reservation_timeout" : 25,104"reservation_status" : "accepted"105}106}107}
Versions
com.twilio.taskrouter.task-queue.deleted
Info
The worker_time_in_previous_activity
field began reporting in seconds starting May 21, 2021. Version 2 of the TaskRouter schema added a new worker_time_in_previous_activity_ms
field that was not exposed through Event Streams previously. If you want to measure this field in milliseconds, you must use schema version 2.
Task Queue Deleted events are compatible with Webhook and Kinesis sinks. To learn more, you can get started with the Webhook or Kinesis quickstarts and refer to the product documentation.
Examples
1{2"specversion" : "1.0",3"type" : "com.twilio.taskrouter.task-queue.deleted",4"source" : "AB00000000000000000000000001",5"id" : "NO00000000000000000000000001",6"dataschema" : "https://events-schemas.twilio.com/TaskRouter.WDSEvent/4",7"datacontenttype" : "2025-10-08T07:17:02.363Z",8"data" : {9"sid" : "EV0000000000000000000000000000001",10"name" : "ReservationCreated",11"account_sid" : "AC0000000000000000000000000000001",12"account_friendly_name" : "An account name",13"parent_account_sid" : "AC0000000000000000000000000000001",14"parent_friendly_name" : "Another account name",15"timestamp" : "2025-01-01T00:00:00.000Z",16"level" : "INFO",17"group" : "reservation",18"product_name" : "TaskRouter",19"publisher" : "Flex Task Assignment",20"publisher_metadata" : "{}",21"payload_type" : "application/json",22"payload" : {23"sid" : "EV0000000000000000000000000000001",24"eventtype" : "reservation.created",25"account_sid" : "AC0000000000000000000000000000001",26"timestamp" : "2025-01-01T00:00:00.000Z",27"workspace_sid" : "WS0000000000000000000000000000001",28"workspace_name" : "Flex Task Assignment",29"task_sid" : "WT0000000000000000000000000000001",30"task_attributes" : "{}",31"task_age" : 31088,32"task_date_created" : "2025-01-01T00:00:00.000Z",33"task_priority" : 1,34"task_assignment_status" : "reserved",35"task_completed_reason" : "All reservations were completed",36"task_canceled_reason" : "hangup",37"reason" : "hangup",38"task_channel_sid" : "TC0000000000000000000000000000001",39"task_channel_unique_name" : "chat",40"reservation_sid" : "WR0000000000000000000000000000001",41"worker_sid" : "WK0000000000000000000000000000001",42"worker_name" : "Flex Task Assignment",43"worker_attributes" : "{}",44"worker_activity_sid" : "WA0000000000000000000000000000001",45"worker_activity_name" : "handling 2",46"worker_time_in_previous_activity" : 322,47"worker_time_in_previous_activity_ms" : 322859,48"worker_previous_activity_sid" : "WA0000000000000000000000000000002",49"worker_previous_activity_name" : "handling 1",50"workflow_sid" : "WW0000000000000000000000000000002",51"workflow_name" : "My workflow",52"task_queue_sid" : "WQ0000000000000000000000000000002",53"task_queue_name" : "My task queue",54"worker_channel_available" : 1,55"worker_channel_capacity" : 1,56"worker_channel_available_capacity" : 100.0,57"worker_channel_previous_capacity" : 6.0,58"worker_channel_task_count" : 0,59"workflow_filter_name" : "My workflow filter name",60"workflow_filter_expression" : "1==1",61"workflow_filter_target_expression" : "worker.channel.chat.assigned_tasks <= 1",62"workflow_filter_target_name" : "My workflow filter target name",63"previous_task_queue_sid" : "WQ0000000000000000000000000000001",64"previous_task_queue_name" : "My previous task queue name",65"previous_task_priority" : 3,66"target_changed_reason" : "skipped",67"task_re_evaluated_reason" : "reservation_timeout",68"task_queue_target_expression" : "allowed_channels HAS \"chat\"",69"task_transfer_sid" : "TT0000000000000000000000000000001",70"transfer_type" : "QUEUE",71"transfer_initiating_worker_sid" : "WK0000000000000000000000000000001",72"transfer_initiating_reservation_sid" : "WR0000000000000000000000000000001",73"transfer_to" : "WQ0000000000000000000000000000001",74"transfer_mode" : "COLD",75"transfer_started" : "2025-01-01T00:00:00.000Z",76"transfer_failed_reason" : "",77"transfer_status" : "complete",78"event_description" : "Reservation WR0000000000000000000000000000001 created",79"resource_type" : "reservation",80"resource_sid" : "WR0000000000000000000000000000001",81"task_routing_target" : "WK0000000000000000000000000000001",82"reservation_reason_code" : 45302,83"task_age_in_queue" : 31086,84"task_queue_entered_date" : "2025-01-01T00:00:00.000Z",85"task_version" : 4,86"reservation_version" : 0,87"task_virtual_start_time" : "2025-01-01T00:00:00.000Z",88"worker_channel_consumed_capacity" : 2,89"worker_version" : 4019,90"task_channel_name" : "My task channel name",91"task_channel_optimized_routing" : false,92"known_worker_sid" : "WK0000000000000000000000000000001",93"activity_sid" : "WA0000000000000000000000000000001",94"activity_name" : "My activity name",95"activity_available" : true,96"operating_unit_sid" : "OU0000000000000000000000000000001",97"operating_unit_friendly_name" : "My operating unit",98"operating_unit_date_created" : "2025-01-01T00:00:00.000Z",99"operating_unit_date_updated" : "2025-01-01T00:00:00.000Z",100"task_add_on_attributes" : "{}",101"task_timeout" : 86400,102"worker_available" : true,103"reservation_timeout" : 25,104"reservation_status" : "accepted"105}106}107}
Versions
com.twilio.taskrouter.task-queue.entered
Info
The worker_time_in_previous_activity
field began reporting in seconds starting May 21, 2021. Version 2 of the TaskRouter schema added a new worker_time_in_previous_activity_ms
field that was not exposed through Event Streams previously. If you want to measure this field in milliseconds, you must use schema version 2.
Task Queue Entered events are compatible with Webhook and Kinesis sinks. To learn more, you can get started with the Webhook or Kinesis quickstarts and refer to the product documentation.
Examples
1{2"specversion" : "1.0",3"type" : "com.twilio.taskrouter.task-queue.entered",4"source" : "AB00000000000000000000000001",5"id" : "NO00000000000000000000000001",6"dataschema" : "https://events-schemas.twilio.com/TaskRouter.WDSEvent/4",7"datacontenttype" : "2025-10-08T07:17:02.363Z",8"data" : {9"sid" : "EV0000000000000000000000000000001",10"name" : "ReservationCreated",11"account_sid" : "AC0000000000000000000000000000001",12"account_friendly_name" : "An account name",13"parent_account_sid" : "AC0000000000000000000000000000001",14"parent_friendly_name" : "Another account name",15"timestamp" : "2025-01-01T00:00:00.000Z",16"level" : "INFO",17"group" : "reservation",18"product_name" : "TaskRouter",19"publisher" : "Flex Task Assignment",20"publisher_metadata" : "{}",21"payload_type" : "application/json",22"payload" : {23"sid" : "EV0000000000000000000000000000001",24"eventtype" : "reservation.created",25"account_sid" : "AC0000000000000000000000000000001",26"timestamp" : "2025-01-01T00:00:00.000Z",27"workspace_sid" : "WS0000000000000000000000000000001",28"workspace_name" : "Flex Task Assignment",29"task_sid" : "WT0000000000000000000000000000001",30"task_attributes" : "{}",31"task_age" : 31088,32"task_date_created" : "2025-01-01T00:00:00.000Z",33"task_priority" : 1,34"task_assignment_status" : "reserved",35"task_completed_reason" : "All reservations were completed",36"task_canceled_reason" : "hangup",37"reason" : "hangup",38"task_channel_sid" : "TC0000000000000000000000000000001",39"task_channel_unique_name" : "chat",40"reservation_sid" : "WR0000000000000000000000000000001",41"worker_sid" : "WK0000000000000000000000000000001",42"worker_name" : "Flex Task Assignment",43"worker_attributes" : "{}",44"worker_activity_sid" : "WA0000000000000000000000000000001",45"worker_activity_name" : "handling 2",46"worker_time_in_previous_activity" : 322,47"worker_time_in_previous_activity_ms" : 322859,48"worker_previous_activity_sid" : "WA0000000000000000000000000000002",49"worker_previous_activity_name" : "handling 1",50"workflow_sid" : "WW0000000000000000000000000000002",51"workflow_name" : "My workflow",52"task_queue_sid" : "WQ0000000000000000000000000000002",53"task_queue_name" : "My task queue",54"worker_channel_available" : 1,55"worker_channel_capacity" : 1,56"worker_channel_available_capacity" : 100.0,57"worker_channel_previous_capacity" : 6.0,58"worker_channel_task_count" : 0,59"workflow_filter_name" : "My workflow filter name",60"workflow_filter_expression" : "1==1",61"workflow_filter_target_expression" : "worker.channel.chat.assigned_tasks <= 1",62"workflow_filter_target_name" : "My workflow filter target name",63"previous_task_queue_sid" : "WQ0000000000000000000000000000001",64"previous_task_queue_name" : "My previous task queue name",65"previous_task_priority" : 3,66"target_changed_reason" : "skipped",67"task_re_evaluated_reason" : "reservation_timeout",68"task_queue_target_expression" : "allowed_channels HAS \"chat\"",69"task_transfer_sid" : "TT0000000000000000000000000000001",70"transfer_type" : "QUEUE",71"transfer_initiating_worker_sid" : "WK0000000000000000000000000000001",72"transfer_initiating_reservation_sid" : "WR0000000000000000000000000000001",73"transfer_to" : "WQ0000000000000000000000000000001",74"transfer_mode" : "COLD",75"transfer_started" : "2025-01-01T00:00:00.000Z",76"transfer_failed_reason" : "",77"transfer_status" : "complete",78"event_description" : "Reservation WR0000000000000000000000000000001 created",79"resource_type" : "reservation",80"resource_sid" : "WR0000000000000000000000000000001",81"task_routing_target" : "WK0000000000000000000000000000001",82"reservation_reason_code" : 45302,83"task_age_in_queue" : 31086,84"task_queue_entered_date" : "2025-01-01T00:00:00.000Z",85"task_version" : 4,86"reservation_version" : 0,87"task_virtual_start_time" : "2025-01-01T00:00:00.000Z",88"worker_channel_consumed_capacity" : 2,89"worker_version" : 4019,90"task_channel_name" : "My task channel name",91"task_channel_optimized_routing" : false,92"known_worker_sid" : "WK0000000000000000000000000000001",93"activity_sid" : "WA0000000000000000000000000000001",94"activity_name" : "My activity name",95"activity_available" : true,96"operating_unit_sid" : "OU0000000000000000000000000000001",97"operating_unit_friendly_name" : "My operating unit",98"operating_unit_date_created" : "2025-01-01T00:00:00.000Z",99"operating_unit_date_updated" : "2025-01-01T00:00:00.000Z",100"task_add_on_attributes" : "{}",101"task_timeout" : 86400,102"worker_available" : true,103"reservation_timeout" : 25,104"reservation_status" : "accepted"105}106}107}
Versions
com.twilio.taskrouter.task-queue.expression.updated
Info
The worker_time_in_previous_activity
field began reporting in seconds starting May 21, 2021. Version 2 of the TaskRouter schema added a new worker_time_in_previous_activity_ms
field that was not exposed through Event Streams previously. If you want to measure this field in milliseconds, you must use schema version 2.
Task Queue Expression Updated events are compatible with Webhook and Kinesis sinks. To learn more, you can get started with the Webhook or Kinesis quickstarts and refer to the product documentation.
Examples
1{2"specversion" : "1.0",3"type" : "com.twilio.taskrouter.task-queue.expression.updated",4"source" : "AB00000000000000000000000001",5"id" : "NO00000000000000000000000001",6"dataschema" : "https://events-schemas.twilio.com/TaskRouter.WDSEvent/4",7"datacontenttype" : "2025-10-08T07:17:02.363Z",8"data" : {9"sid" : "EV0000000000000000000000000000001",10"name" : "ReservationCreated",11"account_sid" : "AC0000000000000000000000000000001",12"account_friendly_name" : "An account name",13"parent_account_sid" : "AC0000000000000000000000000000001",14"parent_friendly_name" : "Another account name",15"timestamp" : "2025-01-01T00:00:00.000Z",16"level" : "INFO",17"group" : "reservation",18"product_name" : "TaskRouter",19"publisher" : "Flex Task Assignment",20"publisher_metadata" : "{}",21"payload_type" : "application/json",22"payload" : {23"sid" : "EV0000000000000000000000000000001",24"eventtype" : "reservation.created",25"account_sid" : "AC0000000000000000000000000000001",26"timestamp" : "2025-01-01T00:00:00.000Z",27"workspace_sid" : "WS0000000000000000000000000000001",28"workspace_name" : "Flex Task Assignment",29"task_sid" : "WT0000000000000000000000000000001",30"task_attributes" : "{}",31"task_age" : 31088,32"task_date_created" : "2025-01-01T00:00:00.000Z",33"task_priority" : 1,34"task_assignment_status" : "reserved",35"task_completed_reason" : "All reservations were completed",36"task_canceled_reason" : "hangup",37"reason" : "hangup",38"task_channel_sid" : "TC0000000000000000000000000000001",39"task_channel_unique_name" : "chat",40"reservation_sid" : "WR0000000000000000000000000000001",41"worker_sid" : "WK0000000000000000000000000000001",42"worker_name" : "Flex Task Assignment",43"worker_attributes" : "{}",44"worker_activity_sid" : "WA0000000000000000000000000000001",45"worker_activity_name" : "handling 2",46"worker_time_in_previous_activity" : 322,47"worker_time_in_previous_activity_ms" : 322859,48"worker_previous_activity_sid" : "WA0000000000000000000000000000002",49"worker_previous_activity_name" : "handling 1",50"workflow_sid" : "WW0000000000000000000000000000002",51"workflow_name" : "My workflow",52"task_queue_sid" : "WQ0000000000000000000000000000002",53"task_queue_name" : "My task queue",54"worker_channel_available" : 1,55"worker_channel_capacity" : 1,56"worker_channel_available_capacity" : 100.0,57"worker_channel_previous_capacity" : 6.0,58"worker_channel_task_count" : 0,59"workflow_filter_name" : "My workflow filter name",60"workflow_filter_expression" : "1==1",61"workflow_filter_target_expression" : "worker.channel.chat.assigned_tasks <= 1",62"workflow_filter_target_name" : "My workflow filter target name",63"previous_task_queue_sid" : "WQ0000000000000000000000000000001",64"previous_task_queue_name" : "My previous task queue name",65"previous_task_priority" : 3,66"target_changed_reason" : "skipped",67"task_re_evaluated_reason" : "reservation_timeout",68"task_queue_target_expression" : "allowed_channels HAS \"chat\"",69"task_transfer_sid" : "TT0000000000000000000000000000001",70"transfer_type" : "QUEUE",71"transfer_initiating_worker_sid" : "WK0000000000000000000000000000001",72"transfer_initiating_reservation_sid" : "WR0000000000000000000000000000001",73"transfer_to" : "WQ0000000000000000000000000000001",74"transfer_mode" : "COLD",75"transfer_started" : "2025-01-01T00:00:00.000Z",76"transfer_failed_reason" : "",77"transfer_status" : "complete",78"event_description" : "Reservation WR0000000000000000000000000000001 created",79"resource_type" : "reservation",80"resource_sid" : "WR0000000000000000000000000000001",81"task_routing_target" : "WK0000000000000000000000000000001",82"reservation_reason_code" : 45302,83"task_age_in_queue" : 31086,84"task_queue_entered_date" : "2025-01-01T00:00:00.000Z",85"task_version" : 4,86"reservation_version" : 0,87"task_virtual_start_time" : "2025-01-01T00:00:00.000Z",88"worker_channel_consumed_capacity" : 2,89"worker_version" : 4019,90"task_channel_name" : "My task channel name",91"task_channel_optimized_routing" : false,92"known_worker_sid" : "WK0000000000000000000000000000001",93"activity_sid" : "WA0000000000000000000000000000001",94"activity_name" : "My activity name",95"activity_available" : true,96"operating_unit_sid" : "OU0000000000000000000000000000001",97"operating_unit_friendly_name" : "My operating unit",98"operating_unit_date_created" : "2025-01-01T00:00:00.000Z",99"operating_unit_date_updated" : "2025-01-01T00:00:00.000Z",100"task_add_on_attributes" : "{}",101"task_timeout" : 86400,102"worker_available" : true,103"reservation_timeout" : 25,104"reservation_status" : "accepted"105}106}107}
Versions
com.twilio.taskrouter.task-queue.moved
Info
The worker_time_in_previous_activity
field began reporting in seconds starting May 21, 2021. Version 2 of the TaskRouter schema added a new worker_time_in_previous_activity_ms
field that was not exposed through Event Streams previously. If you want to measure this field in milliseconds, you must use schema version 2.
Task Queue Moved events are compatible with Webhook and Kinesis sinks. To learn more, you can get started with the Webhook or Kinesis quickstarts and refer to the product documentation.
Examples
1{2"specversion" : "1.0",3"type" : "com.twilio.taskrouter.task-queue.moved",4"source" : "AB00000000000000000000000001",5"id" : "NO00000000000000000000000001",6"dataschema" : "https://events-schemas.twilio.com/TaskRouter.WDSEvent/4",7"datacontenttype" : "2025-10-08T07:17:02.363Z",8"data" : {9"sid" : "EV0000000000000000000000000000001",10"name" : "ReservationCreated",11"account_sid" : "AC0000000000000000000000000000001",12"account_friendly_name" : "An account name",13"parent_account_sid" : "AC0000000000000000000000000000001",14"parent_friendly_name" : "Another account name",15"timestamp" : "2025-01-01T00:00:00.000Z",16"level" : "INFO",17"group" : "reservation",18"product_name" : "TaskRouter",19"publisher" : "Flex Task Assignment",20"publisher_metadata" : "{}",21"payload_type" : "application/json",22"payload" : {23"sid" : "EV0000000000000000000000000000001",24"eventtype" : "reservation.created",25"account_sid" : "AC0000000000000000000000000000001",26"timestamp" : "2025-01-01T00:00:00.000Z",27"workspace_sid" : "WS0000000000000000000000000000001",28"workspace_name" : "Flex Task Assignment",29"task_sid" : "WT0000000000000000000000000000001",30"task_attributes" : "{}",31"task_age" : 31088,32"task_date_created" : "2025-01-01T00:00:00.000Z",33"task_priority" : 1,34"task_assignment_status" : "reserved",35"task_completed_reason" : "All reservations were completed",36"task_canceled_reason" : "hangup",37"reason" : "hangup",38"task_channel_sid" : "TC0000000000000000000000000000001",39"task_channel_unique_name" : "chat",40"reservation_sid" : "WR0000000000000000000000000000001",41"worker_sid" : "WK0000000000000000000000000000001",42"worker_name" : "Flex Task Assignment",43"worker_attributes" : "{}",44"worker_activity_sid" : "WA0000000000000000000000000000001",45"worker_activity_name" : "handling 2",46"worker_time_in_previous_activity" : 322,47"worker_time_in_previous_activity_ms" : 322859,48"worker_previous_activity_sid" : "WA0000000000000000000000000000002",49"worker_previous_activity_name" : "handling 1",50"workflow_sid" : "WW0000000000000000000000000000002",51"workflow_name" : "My workflow",52"task_queue_sid" : "WQ0000000000000000000000000000002",53"task_queue_name" : "My task queue",54"worker_channel_available" : 1,55"worker_channel_capacity" : 1,56"worker_channel_available_capacity" : 100.0,57"worker_channel_previous_capacity" : 6.0,58"worker_channel_task_count" : 0,59"workflow_filter_name" : "My workflow filter name",60"workflow_filter_expression" : "1==1",61"workflow_filter_target_expression" : "worker.channel.chat.assigned_tasks <= 1",62"workflow_filter_target_name" : "My workflow filter target name",63"previous_task_queue_sid" : "WQ0000000000000000000000000000001",64"previous_task_queue_name" : "My previous task queue name",65"previous_task_priority" : 3,66"target_changed_reason" : "skipped",67"task_re_evaluated_reason" : "reservation_timeout",68"task_queue_target_expression" : "allowed_channels HAS \"chat\"",69"task_transfer_sid" : "TT0000000000000000000000000000001",70"transfer_type" : "QUEUE",71"transfer_initiating_worker_sid" : "WK0000000000000000000000000000001",72"transfer_initiating_reservation_sid" : "WR0000000000000000000000000000001",73"transfer_to" : "WQ0000000000000000000000000000001",74"transfer_mode" : "COLD",75"transfer_started" : "2025-01-01T00:00:00.000Z",76"transfer_failed_reason" : "",77"transfer_status" : "complete",78"event_description" : "Reservation WR0000000000000000000000000000001 created",79"resource_type" : "reservation",80"resource_sid" : "WR0000000000000000000000000000001",81"task_routing_target" : "WK0000000000000000000000000000001",82"reservation_reason_code" : 45302,83"task_age_in_queue" : 31086,84"task_queue_entered_date" : "2025-01-01T00:00:00.000Z",85"task_version" : 4,86"reservation_version" : 0,87"task_virtual_start_time" : "2025-01-01T00:00:00.000Z",88"worker_channel_consumed_capacity" : 2,89"worker_version" : 4019,90"task_channel_name" : "My task channel name",91"task_channel_optimized_routing" : false,92"known_worker_sid" : "WK0000000000000000000000000000001",93"activity_sid" : "WA0000000000000000000000000000001",94"activity_name" : "My activity name",95"activity_available" : true,96"operating_unit_sid" : "OU0000000000000000000000000000001",97"operating_unit_friendly_name" : "My operating unit",98"operating_unit_date_created" : "2025-01-01T00:00:00.000Z",99"operating_unit_date_updated" : "2025-01-01T00:00:00.000Z",100"task_add_on_attributes" : "{}",101"task_timeout" : 86400,102"worker_available" : true,103"reservation_timeout" : 25,104"reservation_status" : "accepted"105}106}107}
Versions
com.twilio.taskrouter.task-queue.timeout
Info
The worker_time_in_previous_activity
field began reporting in seconds starting May 21, 2021. Version 2 of the TaskRouter schema added a new worker_time_in_previous_activity_ms
field that was not exposed through Event Streams previously. If you want to measure this field in milliseconds, you must use schema version 2.
Task Queue Timeout events are compatible with Webhook and Kinesis sinks. To learn more, you can get started with the Webhook or Kinesis quickstarts and refer to the product documentation.
Examples
1{2"specversion" : "1.0",3"type" : "com.twilio.taskrouter.task-queue.timeout",4"source" : "AB00000000000000000000000001",5"id" : "NO00000000000000000000000001",6"dataschema" : "https://events-schemas.twilio.com/TaskRouter.WDSEvent/4",7"datacontenttype" : "2025-10-08T07:17:02.363Z",8"data" : {9"sid" : "EV0000000000000000000000000000001",10"name" : "ReservationCreated",11"account_sid" : "AC0000000000000000000000000000001",12"account_friendly_name" : "An account name",13"parent_account_sid" : "AC0000000000000000000000000000001",14"parent_friendly_name" : "Another account name",15"timestamp" : "2025-01-01T00:00:00.000Z",16"level" : "INFO",17"group" : "reservation",18"product_name" : "TaskRouter",19"publisher" : "Flex Task Assignment",20"publisher_metadata" : "{}",21"payload_type" : "application/json",22"payload" : {23"sid" : "EV0000000000000000000000000000001",24"eventtype" : "reservation.created",25"account_sid" : "AC0000000000000000000000000000001",26"timestamp" : "2025-01-01T00:00:00.000Z",27"workspace_sid" : "WS0000000000000000000000000000001",28"workspace_name" : "Flex Task Assignment",29"task_sid" : "WT0000000000000000000000000000001",30"task_attributes" : "{}",31"task_age" : 31088,32"task_date_created" : "2025-01-01T00:00:00.000Z",33"task_priority" : 1,34"task_assignment_status" : "reserved",35"task_completed_reason" : "All reservations were completed",36"task_canceled_reason" : "hangup",37"reason" : "hangup",38"task_channel_sid" : "TC0000000000000000000000000000001",39"task_channel_unique_name" : "chat",40"reservation_sid" : "WR0000000000000000000000000000001",41"worker_sid" : "WK0000000000000000000000000000001",42"worker_name" : "Flex Task Assignment",43"worker_attributes" : "{}",44"worker_activity_sid" : "WA0000000000000000000000000000001",45"worker_activity_name" : "handling 2",46"worker_time_in_previous_activity" : 322,47"worker_time_in_previous_activity_ms" : 322859,48"worker_previous_activity_sid" : "WA0000000000000000000000000000002",49"worker_previous_activity_name" : "handling 1",50"workflow_sid" : "WW0000000000000000000000000000002",51"workflow_name" : "My workflow",52"task_queue_sid" : "WQ0000000000000000000000000000002",53"task_queue_name" : "My task queue",54"worker_channel_available" : 1,55"worker_channel_capacity" : 1,56"worker_channel_available_capacity" : 100.0,57"worker_channel_previous_capacity" : 6.0,58"worker_channel_task_count" : 0,59"workflow_filter_name" : "My workflow filter name",60"workflow_filter_expression" : "1==1",61"workflow_filter_target_expression" : "worker.channel.chat.assigned_tasks <= 1",62"workflow_filter_target_name" : "My workflow filter target name",63"previous_task_queue_sid" : "WQ0000000000000000000000000000001",64"previous_task_queue_name" : "My previous task queue name",65"previous_task_priority" : 3,66"target_changed_reason" : "skipped",67"task_re_evaluated_reason" : "reservation_timeout",68"task_queue_target_expression" : "allowed_channels HAS \"chat\"",69"task_transfer_sid" : "TT0000000000000000000000000000001",70"transfer_type" : "QUEUE",71"transfer_initiating_worker_sid" : "WK0000000000000000000000000000001",72"transfer_initiating_reservation_sid" : "WR0000000000000000000000000000001",73"transfer_to" : "WQ0000000000000000000000000000001",74"transfer_mode" : "COLD",75"transfer_started" : "2025-01-01T00:00:00.000Z",76"transfer_failed_reason" : "",77"transfer_status" : "complete",78"event_description" : "Reservation WR0000000000000000000000000000001 created",79"resource_type" : "reservation",80"resource_sid" : "WR0000000000000000000000000000001",81"task_routing_target" : "WK0000000000000000000000000000001",82"reservation_reason_code" : 45302,83"task_age_in_queue" : 31086,84"task_queue_entered_date" : "2025-01-01T00:00:00.000Z",85"task_version" : 4,86"reservation_version" : 0,87"task_virtual_start_time" : "2025-01-01T00:00:00.000Z",88"worker_channel_consumed_capacity" : 2,89"worker_version" : 4019,90"task_channel_name" : "My task channel name",91"task_channel_optimized_routing" : false,92"known_worker_sid" : "WK0000000000000000000000000000001",93"activity_sid" : "WA0000000000000000000000000000001",94"activity_name" : "My activity name",95"activity_available" : true,96"operating_unit_sid" : "OU0000000000000000000000000000001",97"operating_unit_friendly_name" : "My operating unit",98"operating_unit_date_created" : "2025-01-01T00:00:00.000Z",99"operating_unit_date_updated" : "2025-01-01T00:00:00.000Z",100"task_add_on_attributes" : "{}",101"task_timeout" : 86400,102"worker_available" : true,103"reservation_timeout" : 25,104"reservation_status" : "accepted"105}106}107}
Versions