Event Type Resource
Event types describe the various kinds of events that are accessible through the Event Streams APIs. Each Event Type resource includes a reference to the schema which defines the event type that the resource represents. See the Schema resource documentation for more information.
Resource properties A string that uniquely identifies this Event Type.
A string that uniquely identifies the Schema this Event Type adheres to.
date_created
type: string<DATE TIME> Not PIIThe date that this Event Type was created, given in ISO 8601 format.
date_updated
type: string<DATE TIME> Not PIIThe date that this Event Type was updated, given in ISO 8601 format.
A human readable description for this Event Type.
The URL of this resource.
GET https://events.twilio.com/v1/Types/{Type}
Fetch the list of all available event types in ascending order by event type.
URI parameters Path Parameter
A string that uniquely identifies this Event Type.
_10 // Download the helper library from https://www.twilio.com/docs/node/install
_10 // Find your Account SID and Auth Token at twilio.com/console
_10 // and set the environment variables. See http://twil.io/secure
_10 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10 const authToken = process.env.TWILIO_AUTH_TOKEN;
_10 const client = require('twilio')(accountSid, authToken);
_10 client.events.v1.eventTypes('com.twilio.messaging.message.delivered')
_10 .then(event_type => console.log(event_type.type));
_11 "date_created": "2020-08-13T13:28:20Z",
_11 "date_updated": "2020-08-13T13:28:20Z",
_11 "type": "com.twilio.messaging.message.delivered",
_11 "schema_id": "Messaging.MessageStatus",
_11 "description": "Messaging- delivered message",
_11 "url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
_11 "schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
GET https://events.twilio.com/v1/Types
URI parameters Query Parameter
A string parameter filtering the results to return only the Event Types using a given schema.
Query Parameter
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Query Parameter
The page index. This value is simply for client state.
Query Parameter
The page token. This is provided by the API.
_10 // Download the helper library from https://www.twilio.com/docs/node/install
_10 // Find your Account SID and Auth Token at twilio.com/console
_10 // and set the environment variables. See http://twil.io/secure
_10 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10 const authToken = process.env.TWILIO_AUTH_TOKEN;
_10 const client = require('twilio')(accountSid, authToken);
_10 client.events.v1.eventTypes
_10 .then(eventTypes => eventTypes.forEach(e => console.log(e.type)));
_37 "date_created": "2020-08-13T13:28:20Z",
_37 "date_updated": "2020-08-13T13:28:20Z",
_37 "type": "com.twilio.messaging.message.delivered",
_37 "schema_id": "Messaging.MessageStatus",
_37 "description": "Messaging- delivered message",
_37 "url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
_37 "schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
_37 "date_created": "2020-08-13T13:28:19Z",
_37 "date_updated": "2020-08-13T13:28:19Z",
_37 "type": "com.twilio.messaging.message.failed",
_37 "schema_id": "Messaging.MessageStatus",
_37 "description": "Messaging- failed message",
_37 "url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.failed",
_37 "schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
_37 "first_page_url": "https://events.twilio.com/v1/Types?PageSize=20&Page=0",
_37 "previous_page_url": "https://events.twilio.com/v1/Types?PageSize=20&Page=0",
_37 "url": "https://events.twilio.com/v1/Types?PageSize=20&Page=0",
_37 "next_page_url": "https://events.twilio.com/v1/Types?PageSize=20&Page=1",