NAME
Twilio::Rest::Insights::V1::Call::Annotation - The Annotation resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $annotation = $client->insights->v1->calls($call_sid)->annotation->fetch;
$client->insights->v1->calls($call_sid)->annotation->update(\%options);
DESCRIPTION
This file holds AnnotationContext and AnnotationInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
AnnotationContext
Returned by $client->insights->v1->calls($call_sid)->annotation. It makes no request until one of these methods is called.
fetch
my $annotation = $client->insights->v1->calls($call_sid)->annotation->fetch;
Get the Annotation for a specific Call. Returns a AnnotationInstance.
update
my $annotation = $client->insights->v1->calls($call_sid)->annotation->update(\%options);
Update an Annotation for a specific Call. Returns a AnnotationInstance.
The options are:
answered_by-
Specify which entity answered the call as determined by Answering Machine Detection. Use this to provide feedback on Answering Machine Detection accuracy. Possible enumerated values, one of:
human,machine.humanindicates the call was answered by a person.machineindicates the call was answered by an answering machine. One ofunknown_answered_by,humanormachine. call_score-
Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
comment-
Specify any comments pertaining to the call.
commenthas a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in thecomment. connectivity_issue-
Specify if the call had any connectivity issues. Possible enumerated values, one of
no_connectivity_issue,invalid_number,caller_id,dropped_call, ornumber_reachability. One ofunknown_connectivity_issue,no_connectivity_issue,invalid_number,caller_id,dropped_callornumber_reachability. incident-
Associate this call with an incident or support ticket. The
incidentparameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included inincident. quality_issues-
Specify if the call had any subjective quality issues. Possible values, one or more of
no_quality_issue,low_volume,choppy_robotic,echo,dtmf,latency,owa,static_noise. Use comma separated values to indicate multiple quality issues for the same call. spam-
A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use
trueif the call was a spam call.
AnnotationInstance
See also Twilio::InstanceResource.
It has fetch and update, which work as they do on the context.
Its fields are:
- account_sid
-
The unique SID identifier of the Account.
- answered_by
-
Specifies which entity answered the call as determined by Answering Machine Detection. Possible enumerated values, one of:
human,machine.humanindicates the call was answered by a person.machineindicates the call was answered by an answering machine. One ofunknown_answered_by,humanormachine. - call_score
-
Specifies the Call Score, if available. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
- call_sid
-
The unique SID identifier of the Call.
- comment
-
Specifies any comments pertaining to the call. Twilio does not treat this field as PII, so no PII should be included in comments.
- connectivity_issue
-
Specifies if the call had any connectivity issues. One of
no_connectivity_issue,invalid_number,caller_id,dropped_call, ornumber_reachability. One ofunknown_connectivity_issue,no_connectivity_issue,invalid_number,caller_id,dropped_callornumber_reachability. - incident
-
Incident or support ticket associated with this call. The
incidentproperty is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included inincident. - quality_issues
-
Specifies if the call had any subjective quality issues. Possible values are one or more of
no_quality_issue,low_volume,choppy_robotic,echo,dtmf,latency,owa, orstatic_noise. - spam
-
Specifies if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Is of type Boolean: true, false. Use true if the call was a spam call.
- 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.