NAME

Twilio::Rest::Insights::V1::Call::CallSummary - The CallSummary resource

SYNOPSIS

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

my $call_summary = $client->insights->v1->calls($call_sid)->summary->fetch;

DESCRIPTION

This file holds CallSummaryContext and CallSummaryInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

CallSummaryContext

Returned by $client->insights->v1->calls($call_sid)->summary. It makes no request until one of these methods is called.

fetch

my $call_summary = $client->insights->v1->calls($call_sid)->summary->fetch(\%options);

Get a specific Call Summary. Returns a CallSummaryInstance.

The options are:

processing_state

The Processing State of this Call Summary. One of complete, partial or all. One of complete or partial.

CallSummaryInstance

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.

agent_session_summaries

object List of session summaries for conversation relay. See Details: Call Summary for the object properties.

annotation

object Programmatically 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 of unknown, machine_start, machine_end_beep, machine_end_silence, machine_end_other, human or fax. Refer to AMD for more detail. One of unknown, machine_start, machine_end_beep, machine_end_silence, machine_end_other, human or fax.

attributes

object Attributes 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 of ringing, completed, busy, fail, noanswer, canceled, answered or undialed.

call_type

The Call Type of the summarized Call. One of carrier, sip, trunking, client and whatsapp. One of carrier, sip, trunking, client or whatsapp.

carrier_edge

object Contains metrics and properties for the Twilio media gateway of a PSTN call. See Details: Call Summary for the object properties.

client_edge

object Contains 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_time in 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

object The calling party. See Details: Call Summary for the object properties.

processing_state

The Processing State of the Call Summary. The Processing State will be partial until the assembly of the Call Summary finishes, which occurs approximately 30 minutes after Call end. Then the Processing State changes to complete One of complete or partial.

properties

object Contains edge-agnostic call-level details. See Details: Call Summary for the object properties.

sdk_edge

object Contains metrics and properties for the SDK sensor library for Client calls. See Details: Call Summary for the object properties.

sip_edge

object Contains 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

Tags that Voice Insights analysis applies to calls. They indicate a condition that may influence the subjective experience of call audio quality.

to

object The called party. See Details: Call Summary for the object properties.

trust

object Contains 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.