NAME

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

SYNOPSIS

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

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

DESCRIPTION

This file holds PrebuiltOperatorList, PrebuiltOperatorPage, PrebuiltOperatorContext and PrebuiltOperatorInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

PrebuiltOperatorList

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

read

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

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

The options are:

availability

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

language_code

Returns Pre-built Operators that support the provided language code.

stream

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

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

page

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

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

get_page

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

Fetches the page at a URL given by Twilio.

get_context

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

Returns a PrebuiltOperatorContext, and makes no request.

PrebuiltOperatorPage

A Twilio::Page of PrebuiltOperatorInstance objects.

records_key

build_instance

Used by Twilio::Page.

PrebuiltOperatorContext

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

fetch

my $prebuilt_operator = $client->intelligence->v2->prebuilt_operators($sid)->fetch;

Fetch a specific Pre-built Operator. Returns a PrebuiltOperatorInstance.

PrebuiltOperatorInstance

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 Pre-built Operator belongs to.

author

The creator of the Operator. Pre-built Operators can only be created by Twilio.

availability

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

config

Operator configuration, following the schema defined by the Operator Type. Only available on Custom Operators created by the Account, will be empty for Pre-Built Operators.

date_created

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