NAME

Twilio::Rest::Intelligence::V2::Operator - The Operator resource

SYNOPSIS

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

for my $operator ($client->intelligence->v2->operators->read({}, 20)) {
  ...
}
my $operator = $client->intelligence->v2->operators($sid)->fetch;

DESCRIPTION

This file holds OperatorList, OperatorPage, OperatorContext and OperatorInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

OperatorList

Returned by $client->intelligence->v2->operators. See also Twilio::ListResource.

read

my @records = $client->intelligence->v2->operators->read(\%options, $limit, $page_size);

Retrieves a list of all Operators for an Account, both Custom and Pre-built. Returns the records as a list, fetching as many pages as it needs.

The options are:

availability

Returns Operators with the provided availability type. Possible values: internal, beta, public, retired. One of internal, beta, public, deprecated, general-availability or retired.

language_code

Returns Operators that support the provided language code.

stream

my $stream = $client->intelligence->v2->operators->stream(\%options, $limit, $page_size);

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

page

my $page = $client->intelligence->v2->operators->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->intelligence->v2->operators->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->intelligence->v2->operators->get_context($sid);

Returns a OperatorContext, and makes no request.

OperatorPage

A Twilio::Page of OperatorInstance objects.

records_key

build_instance

Used by Twilio::Page.

OperatorContext

Returned by $client->intelligence->v2->operators($sid). It makes no request until one of these methods is called.

fetch

my $operator = $client->intelligence->v2->operators($sid)->fetch;

Fetch a specific Operator. Works for both Custom and Pre-built Operators. Returns a OperatorInstance.

OperatorInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The unique SID identifier of the Account the Operator belongs to.

author

The creator of the Operator. Either Twilio or the creating Account.

availability

One of internal, beta, public, deprecated, general-availability or retired.

config

Operator configuration, following the schema defined by the Operator Type. Only available on Custom Operators created by the Account.

date_created

The date that this Operator 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 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.

friendly_name

A human-readable name of this resource, up to 64 characters.

operator_type

Operator Type for this Operator. References an existing Operator Type resource.

sid

A 34 character string that uniquely identifies this Operator.

url

The URL of this resource.

version

Numeric Operator version. Incremented with each update on the resource, used to ensure integrity when updating the Operator.

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.