NAME
Twilio::Rest::Insights::V1::CallSummaries - The CallSummaries resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $call_summaries ($client->insights->v1->call_summaries->read({}, 20)) {
...
}
DESCRIPTION
This file holds CallSummariesList, CallSummariesPage and CallSummariesInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
CallSummariesList
Returned by $client->insights->v1->call_summaries. See also Twilio::ListResource.
read
my @records = $client->insights->v1->call_summaries->read(\%options, $limit, $page_size);
Get a list of Call Summaries. Returns the records as a list, fetching as many pages as it needs.
The options are:
abnormal_session-
A boolean flag indicating an abnormal session where the last SIP response was not 200 OK.
answered_by-
An Answered By value for the calls based on
Answering Machine Detection (AMD). One ofunknown,machine_start,machine_end_beep,machine_end_silence,machine_end_other,humanorfax. One ofunknown,machine_start,machine_end_beep,machine_end_silence,machine_end_other,humanorfax. answered_by_annotation-
Either machine or human.
branded_bundle_sid-
A unique SID identifier of the Branded Call.
branded_call_reason-
Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
branded_enabled-
A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
branded_logo-
Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
branded_type-
Indicates whether the Branded Call is in_band vs out_of_band.
branded_use_case-
Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
business_profile_bundle_sid-
A unique SID identifier of the Business Profile.
business_profile_identity-
A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
business_profile_industry-
A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit'
business_profile_type-
A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'.
call_score_annotation-
A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
call_state-
A Call State of the calls. One of
ringing,completed,busy,fail,noanswer,canceled,answered,undialed. call_type-
A Call Type of the calls. One of
carrier,sip,trunkingorclient. connectivity_issue_annotation-
A Connectivity Issue with the calls. One of
no_connectivity_issue,invalid_number,caller_id,dropped_call, ornumber_reachability. direction-
A Direction of the calls. One of
outbound_api,outbound_dial,inbound,trunking_originating,trunking_terminating. end_time-
An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m.
from-
A calling party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
from_carrier-
An origination carrier.
from_country_code-
A source country code based on phone number in From.
has_tag-
A boolean flag indicating the presence of one or more Voice Insights Call Tags.
processing_state-
A Processing State of the Call Summaries. One of
completed,partialorall. One ofcompleted,started,partialorall. quality_issue_annotation-
A subjective Quality Issue with the calls. One of
no_quality_issue,low_volume,choppy_robotic,echo,dtmf,latency,owa,static_noise. sort_by-
A Sort By criterion for the returned list of Call Summaries. One of
start_timeorend_time. One ofstart_timeorend_time. spam_annotation-
A boolean flag indicating spam calls.
start_time-
A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h.
subaccount-
A unique SID identifier of a Subaccount.
to-
A called party. Could be an E.164 number, a SIP URI, or a Twilio Client registered name.
to_carrier-
A destination carrier.
to_country_code-
A destination country code. Based on phone number in To.
verified_caller-
A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'.
voice_integrity_bundle_sid-
A unique SID identifier of the Voice Integrity Profile.
voice_integrity_enabled-
A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
voice_integrity_use_case-
A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
stream
my $stream = $client->insights->v1->call_summaries->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->insights->v1->call_summaries->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->insights->v1->call_summaries->get_page($url);
Fetches the page at a URL given by Twilio.
CallSummariesPage
A Twilio::Page of CallSummariesInstance objects.
records_key
build_instance
Used by Twilio::Page.
CallSummariesInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The unique SID identifier of the Account.
- agent_session_summaries
-
array[object]List of agent session summaries for conversation relay. See Details: Call Summary for the object properties. - annotation
-
objectProgrammatically labeled annotations for the Call. Developers can update the Call Summary records with Annotation during or after a Call. Annotations can be updated as long as the Call Summary record is addressable via the API. See Details: Call Summary for the object properties. - answered_by
-
The Answered By value for the summarized call based on
Answering Machine Detection (AMD). One ofunknown,machine_start,machine_end_beep,machine_end_silence,machine_end_other,humanorfax. Refer to AMD for more detail. One ofunknown,machine_start,machine_end_beep,machine_end_silence,machine_end_other,humanorfax. - attributes
-
objectAttributes capturing call-flow-specific details. See Details: Call Summary for the object properties. - call_sid
-
The unique SID identifier of the Call.
- call_state
-
The Call State of the summarized Call. One of
ringing,completed,busy,fail,noanswer,canceled,answered,undialed. One ofringing,completed,busy,fail,noanswer,canceled,answeredorundialed. - call_type
-
The Call Type of the summarized Call. One of
carrier,sip,trunkingorclient. One ofcarrier,sip,trunking,clientorwhatsapp. - carrier_edge
-
objectContains metrics and properties for the Twilio media gateway of a PSTN call. See Details: Call Summary for the object properties. - client_edge
-
objectContains metrics and properties for the Twilio media gateway of a Client call. See Details: Call Summary for the object properties. - connect_duration
-
Duration between when the call was answered and when it ended
- created_time
-
The time at which the Call was created, given in ISO 8601 format. Can be different from
start_timein the event of queueing due to CPS A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize. - duration
-
Duration between when the call was initiated and the call was ended
- end_time
-
The time at which the Call was ended, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- from
-
objectThe calling party. See Details: Call Summary for the object properties. - processing_state
-
The Processing State of the Call Summary. The Processing State will be
partialuntil the assembly of the Call Summary finishes, which occurs approximately 30 minutes after Call end. Then the Processing State changes tocompleteOne ofcompleteorpartial. - properties
-
objectContains edge-agnostic call-level details. See Details: Call Summary for the object properties. - sdk_edge
-
objectContains metrics and properties for the SDK sensor library for Client calls. See Details: Call Summary for the object properties. - sip_edge
-
objectContains metrics and properties for the Twilio media gateway of a SIP Interface or Trunking call. See Details: Call Summary for the object properties. - start_time
-
The time at which the Call was started, given in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
-
Tags that Voice Insights analysis applies to calls. They indicate a condition that may influence the subjective experience of call audio quality.
- to
-
objectThe called party. See Details: Call Summary for the object properties. - trust
-
objectContains trusted communications details including Branded Call and verified caller ID. See Details: Call Summary for the object properties. - 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.