NAME
Twilio::Rest::FlexApi::V1::InsightsSegments - The InsightsSegments resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $insights_segments ($client->flex_api->v1->insights_segments->read({}, 20)) {
...
}
DESCRIPTION
This file holds InsightsSegmentsList, InsightsSegmentsPage and InsightsSegmentsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
InsightsSegmentsList
Returned by $client->flex_api->v1->insights_segments. See also Twilio::ListResource.
read
my @records = $client->flex_api->v1->insights_segments->read(\%options, $limit, $page_size);
To get segments for given reservation Ids. Returns the records as a list, fetching as many pages as it needs.
The options are:
-
The Authorization HTTP request header
reservation_id-
The list of reservation Ids An array reference.
segment_id-
To unique id of the segment
stream
my $stream = $client->flex_api->v1->insights_segments->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->flex_api->v1->insights_segments->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->flex_api->v1->insights_segments->get_page($url);
Fetches the page at a URL given by Twilio.
InsightsSegmentsPage
A Twilio::Page of InsightsSegmentsInstance objects.
records_key
build_instance
Used by Twilio::Page.
InsightsSegmentsInstance
See also Twilio::InstanceResource.
Its fields are:
- account_id
-
The unique id for the account.
- agent_id
-
The unique id for the agent.
- agent_link
-
The link to the agent conversation.
- agent_name
-
The name of the agent.
- agent_phone
-
The phone number of the agent.
- agent_team_name
-
The team name to which agent belongs.
- agent_team_name_in_hierarchy
-
he team name to which agent belongs.
- assessment_percentage
-
The percentage scored on the Assessments.
- assessment_type
-
The type of the assessment.
- customer_link
-
The link to the customer conversation.
- customer_name
-
The name of the customer.
- customer_phone
-
The phone number of the customer.
- date
-
The date of the conversation.
- external_contact
-
No description in the specification.
- external_id
-
The unique id for the conversation.
- external_segment_link
-
The hyperlink to recording of the task event.
- external_segment_link_id
-
The uuid for the external_segment_link.
- media
-
The media identifiers of the conversation.
- queue
-
No description in the specification.
- segment_id
-
To unique id of the segment
- segment_recording_offset
-
The offset value for the recording.
- url
-
No description in the specification.
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.