TaskRouter logs Events for each state change in the Workspace for the purpose of historical reporting and auditing; it keeps that data for 30 days. To learn more about what events to expect and how they work, please visit the Event Reference page.
Pagination is not supported under this resource. Please avoid usage of the page
query parameter.
The SID of the object the event is most relevant to, such as a TaskSid, ReservationSid, or a WorkerSid.
The type of object the event is most relevant to, such as a Task, Reservation, or a Worker).
The SID of the Workspace that contains the Event.
GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Events/{Sid}
GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Events
The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace.
Only include Events that occurred on or before this date, specified in GMT as an ISO 8601 date-time.
The type of Events to read. Returns only Events of the type specified.
The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is 15
minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
Only include Events from on or after this date and time, specified in ISO 8601 format. Task Attributes for Events older than 30 days will be redacted.
The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
If the StartDate
of the Events request is greater than 30 days in the past then the query will be serviced a 400
-error response.