NAME

Twilio::Rest::Events::V1::EventType - The EventType resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $event_type ($client->events->v1->event_types->read({}, 20)) {
  ...
}
my $event_type = $client->events->v1->event_types($type)->fetch;

DESCRIPTION

Event Types available

This file holds EventTypeList, EventTypePage, EventTypeContext and EventTypeInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

EventTypeList

Returned by $client->events->v1->event_types. See also Twilio::ListResource.

read

my @records = $client->events->v1->event_types->read(\%options, $limit, $page_size);

Retrieve a paginated list of all the available Event Types. Returns the records as a list, fetching as many pages as it needs.

The options are:

schema_id

A string parameter filtering the results to return only the Event Types using a given schema.

stream

my $stream = $client->events->v1->event_types->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->events->v1->event_types->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->events->v1->event_types->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->events->v1->event_types->get_context($type);

Returns a EventTypeContext, and makes no request.

EventTypePage

A Twilio::Page of EventTypeInstance objects.

records_key

build_instance

Used by Twilio::Page.

EventTypeContext

Returned by $client->events->v1->event_types($type). It makes no request until one of these methods is called.

fetch

my $event_type = $client->events->v1->event_types($type)->fetch;

Fetch a specific Event Type. Returns a EventTypeInstance.

EventTypeInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

date_created

The date that this Event Type was created, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date that this Event Type was updated, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

description

A human readable description for this Event Type.

documentation_url

The URL to the documentation or to the most relevant Twilio Changelog entry of this Event Type.

No description in the specification.

schema_id

A string that uniquely identifies the Schema this Event Type adheres to.

status

A string that describes how this Event Type can be used. For example: available, deprecated, restricted, discontinued. When the status is available, the Event Type can be used normally.

type

A string that uniquely identifies this Event Type.

url

The URL of this resource.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.