SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How to Retrieve TaskRouter Logs For a Specific Time Period

Objective

Retrieve TaskRouter logs for a specific duration for the purpose of historical reporting and auditing.

 

Product

Flex

 

Procedure 

TaskRouter logs events for each state change in the Workspace, and it keeps that data for 30 days. You can filter TaskRouter logs using any of the following parameters:

  • Task SID
  • Reservation SID
  • TaskQueue SID
  • Workflow SID
  • Worker SID
  • Task Channel SID
  • Event Type
  • Minutes
  • Start Date
  • End Date

You can use the following Twilio CLI command to retrieve TaskRouter logs for a designated time frame. This particular example will also filter for a specific TaskQueue and all task.created events:

twilio api:taskrouter:v1:workspaces:events:list --workspace-sid WSxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --task-queue-sid=WQxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --event-type=task.created --start-date=YYYY-MM-DD --end-date=YYYY-MM-DD

 

Additional Information 

You can find additional information about how TaskRouter events and their attributes at the following links:

Have more questions? Submit a request
Powered by Zendesk