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
type
type: string
A string that uniquely identifies this Event Type.
schema_id
type: string
A string that uniquely identifies the Schema this Event Type adheres to.
date_created
type: string<date-time>
The date that this Event Type was created, given in ISO 8601 format.
date_updated
type: string<date-time>
The date that this Event Type was updated, given in ISO 8601 format.
description
type: string
A human readable description for this Event Type.
url
type: string<uri>
The URL of this resource.
links
type: object<uri-map>
GET https://events.twilio.com/v1/Types/{Type}
Fetch the list of all available event types in ascending order by event type.
URI parameters
Type
type: string
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
_10const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10const authToken = process.env.TWILIO_AUTH_TOKEN;
_10const client = require('twilio')(accountSid, authToken);
_10client.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
SchemaId
type: string
A string parameter filtering the results to return only the Event Types using a given schema.
PageSize
type: integer
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Page
type: integer
The page index. This value is simply for client state.
PageToken
type: string
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
_10const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10const authToken = process.env.TWILIO_AUTH_TOKEN;
_10const client = require('twilio')(accountSid, authToken);
_10client.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",