Path parameters
-
The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace.
Query parameters
-
EndDate string(date-time)
Only include Events that occurred on or before this date, specified in GMT as an ISO 8601 date-time.
-
EventType string
The type of Events to read. Returns only Events of the type specified.
-
Minutes integer
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. -
ReservationSid string
The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
-
StartDate string(date-time)
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.
-
TaskQueueSid string
The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
-
TaskSid string
The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
-
WorkerSid string
The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
-
WorkflowSid string
The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
-
TaskChannel string
The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
-
Sid string
The SID of the Event resource to read.
-
PageSize integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
.
curl \
-X GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Events \
--user "username:password"
{
"events": [
{
"account_sid": "string",
"actor_sid": "string",
"actor_type": "string",
"actor_url": "https://example.com",
"description": "string",
"event_date": "2023-05-04T09:42:00+00:00",
"event_date_ms": 42,
"event_type": "string",
"resource_sid": "string",
"resource_type": "string",
"resource_url": "https://example.com",
"sid": "string",
"source": "string",
"source_ip_address": "string",
"url": "https://example.com",
"workspace_sid": "string"
}
],
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
}
}
{
"events": [
{
"account_sid": "string",
"actor_sid": "string",
"actor_type": "string",
"actor_url": "https://example.com",
"description": "string",
"event_date": "2024-05-04T09:42:00+00:00",
"event_date_ms": 42,
"event_type": "string",
"resource_sid": "string",
"resource_type": "string",
"resource_url": "https://example.com",
"sid": "string",
"source": "string",
"source_ip_address": "string",
"url": "https://example.com",
"workspace_sid": "string"
}
],
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
}
}