NAME
Twilio::Rest::Intelligence::V3::Configuration - The Configuration resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $configuration = $client->intelligence->v3->configurations->create(\%body);
for my $configuration ($client->intelligence->v3->configurations->read({}, 20)) {
...
}
my $configuration = $client->intelligence->v3->configurations($id)->fetch;
$client->intelligence->v3->configurations($id)->update(\%body);
$client->intelligence->v3->configurations($id)->delete;
DESCRIPTION
This file holds ConfigurationList, ConfigurationPage, ConfigurationContext and ConfigurationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ConfigurationList
Returned by $client->intelligence->v3->configurations. See also Twilio::ListResource.
create
my $configuration = $client->intelligence->v3->configurations->create(\%body);
Create an Intelligence Configuration to control how and when language operators analyze conversations. You must include the rules field in the request. You can pass an empty array ("rules": []), but an Intelligence Configuration with an empty rules array doesn't execute any language operators. To add rules later, make a PUT /v3/ControlPlane/Configurations/{id} request. After creating an Intelligence Configuration, you must attach it to a Conversations Configuration by using the Conversations API. Returns a ConfigurationInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
description-
The description of the Intelligence Configuration further explaining its purpose.
displayName-
Required. The display name of the Intelligence Configuration describing its purpose.
rules-
Required. List of Intelligence Configuration Rules that govern when and how Language Operators run. Each Rule represents a bundle of Operators, Triggers, Context, and Actions to be executed by the Intelligence Configuration on a Conversation. A maximum of five (5) Rules are allowed per Intelligence Configuration. To create an Intelligence Configuration without any Rules configured yet, pass an empty array (
"rules": []). The Configuration will not execute any Language Operators until at least one Rule has been added.
read
my @records = $client->intelligence->v3->configurations->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->intelligence->v3->configurations->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->intelligence->v3->configurations->page(\%options, $page_size, $page_token);
Fetches one page, and returns a Twilio::TokenPaginationPage. This API pages by token, so there is no page number.
get_page
my $page = $client->intelligence->v3->configurations->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->intelligence->v3->configurations->get_context($id);
Returns a ConfigurationContext, and makes no request.
ConfigurationPage
A Twilio::Page of ConfigurationInstance objects.
records_key
build_instance
Used by Twilio::Page.
ConfigurationContext
Returned by $client->intelligence->v3->configurations($id). It makes no request until one of these methods is called.
fetch
my $configuration = $client->intelligence->v3->configurations($id)->fetch;
Returns a ConfigurationInstance.
update
my $configuration = $client->intelligence->v3->configurations($id)->update(\%body);
Update an Intelligence Configuration, including its metadata and rules. The request must include all required fields. Returns a ConfigurationInstance.
%body is sent as JSON. It takes the names Twilio's API documentation uses.
Its fields are:
description-
The description of the Intelligence Configuration further explaining its purpose.
displayName-
Required. The display name of the Intelligence Configuration describing its purpose.
rules-
Required. List of Intelligence Configuration Rules that govern when and how Language Operators run. Each Rule represents a bundle of Operators, Triggers, Context, and Actions to be executed by the Intelligence Configuration on a Conversation. A maximum of five (5) Rules are allowed per Intelligence Configuration.
delete
$client->intelligence->v3->configurations($id)->delete;
Returns true.
ConfigurationInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_id
-
The ID of the Account that created the Intelligence Configuration.
- date_created
-
Timestamp of when the Intelligence Configuration was created. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
Timestamp of when the Intelligence Configuration was last updated. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- description
-
The description of the Intelligence Configuration further explaining its purpose.
- display_name
-
The display name of the Intelligence Configuration describing its purpose.
- id
-
The unique identifier for the Intelligence Configuration. Assigned by Twilio (TTID).
- rules
-
List of Intelligence Configuration Rules that govern when and how Language Operators run. Each Rule represents a bundle of Operators, Triggers, Context, and Actions to be executed by the Intelligence Configuration on a Conversation. A maximum of five (5) Rules are allowed per Intelligence Configuration.
- version
-
The numeric version of the Intelligence Configuration. Automatically incremented with each update on the resource, used to ensure integrity when updating the Configuration.
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.