NAME
Twilio::Rest::Intelligence::V2::OperatorType - The OperatorType resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $operator_type ($client->intelligence->v2->operator_type->read({}, 20)) {
...
}
my $operator_type = $client->intelligence->v2->operator_type($sid)->fetch;
DESCRIPTION
This file holds OperatorTypeList, OperatorTypePage, OperatorTypeContext and OperatorTypeInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
OperatorTypeList
Returned by $client->intelligence->v2->operator_type. See also Twilio::ListResource.
read
my @records = $client->intelligence->v2->operator_type->read(\%options, $limit, $page_size);
Retrieves a list of all Operator Types for an Account. Returns the records as a list, fetching as many pages as it needs.
The options are:
language_code-
Returns Operator Types that support the provided language code.
stream
my $stream = $client->intelligence->v2->operator_type->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->intelligence->v2->operator_type->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->intelligence->v2->operator_type->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->intelligence->v2->operator_type->get_context($sid);
Returns a OperatorTypeContext, and makes no request.
OperatorTypePage
A Twilio::Page of OperatorTypeInstance objects.
records_key
build_instance
Used by Twilio::Page.
OperatorTypeContext
Returned by $client->intelligence->v2->operator_type($sid). It makes no request until one of these methods is called.
fetch
my $operator_type = $client->intelligence->v2->operator_type($sid)->fetch;
Fetch a specific Operator Type. Returns a OperatorTypeInstance.
OperatorTypeInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- availability
-
One of
internal,beta,general-availability,retiredordeprecated. - config_schema
-
JSON Schema for configuring an Operator with this Operator Type. Following https://json-schema.org/
- configurable
-
Operators can be created from configurable Operator Types.
- date_created
-
The date that this Operator 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 Operator 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 of this resource, longer than the friendly name.
- docs_link
-
Additional documentation for the Operator Type.
- friendly_name
-
A human-readable name of this resource, up to 64 characters.
- name
-
A unique name that references an Operator's Operator Type.
- output_type
-
One of
text-classification,text-extraction,text-extraction-normalized,text-generationorjson. - provider
-
One of
twilio,amazonoropenai. - sid
-
A 34 character string that uniquely identifies this Operator Type.
- supported_languages
-
List of languages this Operator Type supports.
- 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.